Browse Source

don't restrict GiveLoot to only NPC/Player for arg 1

Image 3 years ago
parent
commit
5b3558dcd6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/LuaFunctions.cpp

+ 1 - 1
EQ2/source/WorldServer/LuaFunctions.cpp

@@ -488,7 +488,7 @@ int EQ2Emu_lua_GiveLoot(lua_State* state) {
 		return 0;
 	Spawn* entity = lua_interface->GetSpawn(state);
 	Spawn* player = lua_interface->GetSpawn(state, 2);
-	if (entity && entity->IsEntity() && player && player->IsPlayer()) {
+	if (entity && player && player->IsPlayer()) {
 		int32 coins = lua_interface->GetInt32Value(state, 3);
 		vector<Item*>* items = 0;
 		int i = 0;