diff --git a/src/lua/functions/creatures/creature_functions.cpp b/src/lua/functions/creatures/creature_functions.cpp index 5a26667cd38..81a4a0b5304 100644 --- a/src/lua/functions/creatures/creature_functions.cpp +++ b/src/lua/functions/creatures/creature_functions.cpp @@ -1020,8 +1020,8 @@ int CreatureFunctions::luaCreatureSetIcon(lua_State* L) { return 1; } const auto key = getString(L, 2); - auto category = getNumber(L, 3); - auto count = getNumber(L, 5, 0); + const auto category = getNumber(L, 3); + const auto count = getNumber(L, 5, 0); CreatureIcon creatureIcon; if (category == CreatureIconCategory_t::Modifications) { auto icon = getNumber(L, 4);