From 122779f901bcf8aa28a509d487107738eaa916a9 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Sun, 21 Jan 2024 22:16:11 -0300 Subject: [PATCH] fix: 13.30 compilation --- src/lua/functions/creatures/monster/monster_type_functions.cpp | 2 -- src/lua/functions/creatures/npc/npc_type_functions.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/lua/functions/creatures/monster/monster_type_functions.cpp b/src/lua/functions/creatures/monster/monster_type_functions.cpp index 7f7ff348dad..4434b6e9414 100644 --- a/src/lua/functions/creatures/monster/monster_type_functions.cpp +++ b/src/lua/functions/creatures/monster/monster_type_functions.cpp @@ -1161,8 +1161,6 @@ int MonsterTypeFunctions::luaMonsterTypeOutfit(lua_State* L) { Outfit_t outfit = getOutfit(L, 2); #if CLIENT_VERSION > 1100 if (outfit.lookType != 0 && !g_game().isLookTypeRegistered(outfit.lookType)) { - // Remove invalid monster to avoid client debug - g_monsters().removeMonsterType(monsterType->name); reportErrorFunc(fmt::format("An unregistered monster looktype type with id '{}' was blocked to prevent client crash.", outfit.lookType)); return 1; } diff --git a/src/lua/functions/creatures/npc/npc_type_functions.cpp b/src/lua/functions/creatures/npc/npc_type_functions.cpp index 1167308a660..65c3800faac 100644 --- a/src/lua/functions/creatures/npc/npc_type_functions.cpp +++ b/src/lua/functions/creatures/npc/npc_type_functions.cpp @@ -310,8 +310,6 @@ int NpcTypeFunctions::luaNpcTypeOutfit(lua_State* L) { Outfit_t outfit = getOutfit(L, 2); #if CLIENT_VERSION > 1100 if (g_configManager().getBoolean(WARN_UNREGISTERED_DAT_INFO, __FUNCTION__) && outfit.lookType != 0 && !g_game().isLookTypeRegistered(outfit.lookType)) { - // Remove invalid npc to avoid client debug - g_npcs().removeNpcType(npcType->name); reportErrorFunc(fmt::format("An unregistered npc looktype type with id '{}' was blocked to prevent client crash.", outfit.lookType)); return 1; }