diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-10-06 20:22:14 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-10-06 20:22:14 +0200 |
| commit | 0ce96adb7a8ae29a577cce268c8bd3742253cf69 (patch) | |
| tree | 11baa1795dd2258c7dc4047b536ccdfd9314eaa4 /src/server/game/Chat/ChatCommands | |
| parent | f774c4e855b372676190279b2bc1ba12ed15f028 (diff) | |
Core/Objects: Treat areas that have ParentAreaID filled but dont have IsSubzone flag as zones instead of areas
Diffstat (limited to 'src/server/game/Chat/ChatCommands')
| -rw-r--r-- | src/server/game/Chat/ChatCommands/ChatCommand.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/game/Chat/ChatCommands/ChatCommand.cpp b/src/server/game/Chat/ChatCommands/ChatCommand.cpp index 4d7c1792f8e..a26cb7aa7b4 100644 --- a/src/server/game/Chat/ChatCommands/ChatCommand.cpp +++ b/src/server/game/Chat/ChatCommands/ChatCommand.cpp @@ -153,8 +153,9 @@ static void LogCommandUsage(WorldSession const& session, uint32 permission, std: { LocaleConstant locale = session.GetSessionDbcLocale(); areaName = area->AreaName[locale]; - if (AreaTableEntry const* zone = sAreaTableStore.LookupEntry(area->ParentAreaID)) - zoneName = zone->AreaName[locale]; + if (area->GetFlags().HasFlag(AreaFlags::IsSubzone)) + if (AreaTableEntry const* zone = sAreaTableStore.LookupEntry(area->ParentAreaID)) + zoneName = zone->AreaName[locale]; } sLog->OutCommand(session.GetAccountId(), "Command: {} [Player: {} ({}) (Account: {}) X: {} Y: {} Z: {} Map: {} ({}) Area: {} ({}) Zone: {} Selected: {} ({})]", |
