--- deliantra/server/common/exp.C 2010/03/26 01:04:43 1.27 +++ deliantra/server/common/exp.C 2010/04/09 17:44:17 1.28 @@ -79,11 +79,10 @@ static int has_ability (const object *ob) { - object *tmp; - - for (tmp = ob->inv; tmp != NULL; tmp = tmp->below) + for (object *tmp = ob->inv; tmp; tmp = tmp->below) if (tmp->type == SPELL || tmp->type == SPELLBOOK) return true; + return false; }