Skip to content

Commit

Permalink
Fix 'go creature id' command for multi entry spawns.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Dec 25, 2023
1 parent 7e3743d commit f2b4b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/ObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10770,7 +10770,7 @@ void ObjectMgr::RemoveGroup(Group* group)
bool FindCreatureData::operator()(CreatureDataPair const& dataPair)
{
// skip wrong entry ids
if (i_id && dataPair.second.creature_id[0] != i_id)
if (i_id && !dataPair.second.HasCreatureId(i_id))
return false;

if (!i_anyData)
Expand Down

0 comments on commit f2b4b78

Please sign in to comment.