Преглед на файлове

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

Image преди 4 години
родител
ревизия
5b3558dcd6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;