diff --git a/src/lua/functions/creatures/creature_functions.cpp b/src/lua/functions/creatures/creature_functions.cpp index 6b09945971a..5a26667cd38 100644 --- a/src/lua/functions/creatures/creature_functions.cpp +++ b/src/lua/functions/creatures/creature_functions.cpp @@ -1024,7 +1024,7 @@ int CreatureFunctions::luaCreatureSetIcon(lua_State* L) { auto count = getNumber(L, 5, 0); CreatureIcon creatureIcon; if (category == CreatureIconCategory_t::Modifications) { - auto icon = getNumber(L, 5); + auto icon = getNumber(L, 4); creatureIcon = CreatureIcon(icon, count); } else { auto icon = getNumber(L, 4);