Forráskód Böngészése

Fix UnequipSlot not properly handling third field which is no_delete_item

Emagi 1 éve
szülő
commit
dc571783e7
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      EQ2/source/WorldServer/LuaFunctions.cpp

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

@@ -6617,7 +6617,7 @@ int	EQ2Emu_lua_UnequipSlot(lua_State* state) {
 		return 0;
 	Spawn* spawn = lua_interface->GetSpawn(state);
 	int8 slot = lua_interface->GetInt8Value(state, 2);
-	bool no_delete_item = (lua_interface->GetBooleanValue(state, 2) == false); // if not set then we default to deleting it, otherwise if set to true we don't delete
+	bool no_delete_item = (lua_interface->GetBooleanValue(state, 3) == false); // if not set then we default to deleting it, otherwise if set to true we don't delete
 
 	lua_interface->ResetFunctionStack(state);
 	if (!spawn) {