From c92950b3e1f6366d85d707365a8ad2caddafeecc Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 12 Jul 2020 15:36:55 +0200 Subject: Core/DataStores: Update DBC field names to generated ones (#24999) --- src/server/game/Chat/Chat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/game/Chat/Chat.cpp') diff --git a/src/server/game/Chat/Chat.cpp b/src/server/game/Chat/Chat.cpp index b5fde171ba0..20468af0511 100644 --- a/src/server/game/Chat/Chat.cpp +++ b/src/server/game/Chat/Chat.cpp @@ -290,9 +290,9 @@ bool ChatHandler::ExecuteCommandInTable(std::vector const& table, c if (AreaTableEntry const* area = sAreaTableStore.LookupEntry(areaId)) { int locale = GetSessionDbcLocale(); - areaName = area->area_name[locale]; - if (AreaTableEntry const* zone = sAreaTableStore.LookupEntry(area->zone)) - zoneName = zone->area_name[locale]; + areaName = area->AreaName[locale]; + if (AreaTableEntry const* zone = sAreaTableStore.LookupEntry(area->ParentAreaID)) + zoneName = zone->AreaName[locale]; } sLog->outCommand(m_session->GetAccountId(), "Command: %s [Player: %s (%s) (Account: %u) X: %f Y: %f Z: %f Map: %u (%s) Area: %u (%s) Zone: %s Selected: %s (%s)]", @@ -877,7 +877,7 @@ uint32 ChatHandler::extractSpellIdFromLink(char* text) if (rank >= MAX_TALENT_RANK) return 0; - return talentEntry->RankID[rank]; + return talentEntry->SpellRank[rank]; } case SPELL_LINK_ENCHANT: case SPELL_LINK_TRADE: @@ -890,7 +890,7 @@ uint32 ChatHandler::extractSpellIdFromLink(char* text) if (!glyphPropEntry) return 0; - return glyphPropEntry->SpellId; + return glyphPropEntry->SpellID; } } -- cgit v1.2.3