Skip to content

Commit

Permalink
Update creature_functions.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan Luciano committed Aug 21, 2024
1 parent 88a4db9 commit ca24aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/functions/creatures/creature_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1024,7 +1024,7 @@ int CreatureFunctions::luaCreatureSetIcon(lua_State* L) {
auto count = getNumber<uint16_t>(L, 5, 0);
CreatureIcon creatureIcon;
if (category == CreatureIconCategory_t::Modifications) {
auto icon = getNumber<CreatureIconModifications_t>(L, 5);
auto icon = getNumber<CreatureIconModifications_t>(L, 4);
creatureIcon = CreatureIcon(icon, count);
} else {
auto icon = getNumber<CreatureIconQuests_t>(L, 4);
Expand Down

0 comments on commit ca24aed

Please sign in to comment.