diff --git a/src/LuaEngine/GameObjectMethods.h b/src/LuaEngine/GameObjectMethods.h index 3e63747..e416102 100644 --- a/src/LuaEngine/GameObjectMethods.h +++ b/src/LuaEngine/GameObjectMethods.h @@ -247,7 +247,6 @@ namespace LuaGameObject int i = 1; int argAmount = lua_gettop(L); - uint8 addedItems = 0; while (i + 2 <= argAmount) { uint32 entry = Eluna::CHECKVAL(L, ++i); @@ -255,9 +254,8 @@ namespace LuaGameObject LootStoreItem storeItem(entry, 0, 100, 0, LOOT_MODE_DEFAULT, 0, amount, amount); go->loot.AddItem(storeItem); - ++addedItems; } - return addedItems; + return 0; } /**