From 22b58552c4cf9c8314bd81a936566c8721f49a16 Mon Sep 17 00:00:00 2001 From: 55Honey <71938210+55Honey@users.noreply.github.com> Date: Sun, 5 Jun 2022 23:06:48 +0200 Subject: [PATCH] remove more extra code --- src/LuaEngine/GameObjectMethods.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } /**