diff --git a/src/game/Chat/Level2.cpp b/src/game/Chat/Level2.cpp index b4ef878924..7e63c40cb6 100644 --- a/src/game/Chat/Level2.cpp +++ b/src/game/Chat/Level2.cpp @@ -1249,6 +1249,8 @@ bool ChatHandler::HandleGameObjectNearCommand(char* args) const char* name = "Random (gameobject_spawn_entry)"; if (gInfo) name = gInfo->name; + else if (sObjectMgr.GetRandomGameObjectEntry(guid) == 0) + name = "Random (spawn_group_entry)"; uint32 spawnGroupId = 0; if (SpawnGroupEntry* groupEntry = pl->GetMap()->GetMapDataContainer().GetSpawnGroupByGuid(guid, TYPEID_GAMEOBJECT))