diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-12 15:36:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-12 15:36:55 +0200 |
commit | c92950b3e1f6366d85d707365a8ad2caddafeecc (patch) | |
tree | 9c034dc61e7b8dc5d480bfd476a6631b8d9dd592 /src/server/game/Events/GameEventMgr.cpp | |
parent | 352944266822f8c8d3bfdd6078c6f82d3555dd85 (diff) |
Core/DataStores: Update DBC field names to generated ones (#24999)
Diffstat (limited to 'src/server/game/Events/GameEventMgr.cpp')
-rw-r--r-- | src/server/game/Events/GameEventMgr.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server/game/Events/GameEventMgr.cpp b/src/server/game/Events/GameEventMgr.cpp index 3f52804fab5..88a47de0c40 100644 --- a/src/server/game/Events/GameEventMgr.cpp +++ b/src/server/game/Events/GameEventMgr.cpp @@ -983,9 +983,9 @@ void GameEventMgr::LoadHolidayDates() if (uint32 duration = fields[3].GetUInt32()) entry->Duration[0] = duration; - auto itr = std::lower_bound(modifiedHolidays.begin(), modifiedHolidays.end(), entry->Id); - if (itr == modifiedHolidays.end() || *itr != entry->Id) - modifiedHolidays.insert(itr, entry->Id); + auto itr = std::lower_bound(modifiedHolidays.begin(), modifiedHolidays.end(), entry->ID); + if (itr == modifiedHolidays.end() || *itr != entry->ID) + modifiedHolidays.insert(itr, entry->ID); ++count; } while (result->NextRow()); @@ -1585,10 +1585,10 @@ void GameEventMgr::UpdateWorldStates(uint16 event_id, bool Activate) if (bgTypeId != BATTLEGROUND_TYPE_NONE) { BattlemasterListEntry const* bl = sBattlemasterListStore.LookupEntry(bgTypeId); - if (bl && bl->HolidayWorldStateId) + if (bl && bl->HolidayWorldState) { WorldPackets::WorldState::UpdateWorldState worldstate; - worldstate.VariableID = bl->HolidayWorldStateId; + worldstate.VariableID = bl->HolidayWorldState; worldstate.Value = Activate ? 1 : 0; sWorld->SendGlobalMessage(worldstate.Write()); } |