Skip to content

Commit 57a165c

Browse files
committed
Creature: Fix readout to include spawn_group_entry
1 parent dc20d1f commit 57a165c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/game/Chat/Level2.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1249,6 +1249,8 @@ bool ChatHandler::HandleGameObjectNearCommand(char* args)
12491249
const char* name = "Random (gameobject_spawn_entry)";
12501250
if (gInfo)
12511251
name = gInfo->name;
1252+
else if (sObjectMgr.GetRandomGameObjectEntry(guid) == 0)
1253+
name = "Random (spawn_group_entry)";
12521254

12531255
uint32 spawnGroupId = 0;
12541256
if (SpawnGroupEntry* groupEntry = pl->GetMap()->GetMapDataContainer().GetSpawnGroupByGuid(guid, TYPEID_GAMEOBJECT))

0 commit comments

Comments
 (0)