--- deliantra/server/common/exp.C 2009/11/29 09:41:27 1.25 +++ deliantra/server/common/exp.C 2010/04/09 17:44:17 1.28 @@ -1,9 +1,9 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team - * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team - * Copyright (©) 1992,2007 Frank Tore Johansen + * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2002 Mark Wedel & Crossfire Development Team + * Copyright (©) 1992 Frank Tore Johansen * * Deliantra is free software: you can redistribute it and/or modify it under * the terms of the Affero GNU General Public License as published by the @@ -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; }