Skip to content

Commit

Permalink
fix: 13.30 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Jan 22, 2024
1 parent c5aee55 commit 122779f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 0 additions & 2 deletions src/lua/functions/creatures/npc/npc_type_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 122779f

Please sign in to comment.