From 8675fd756ff9a705bc255e15a150c8c72276d35a Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 14 Jul 2020 12:46:57 +0200 Subject: Core/Misc: Fixed wrong db field accessors usage found with TRINITY_STRICT_DATABASE_TYPE_CHECKS * Fixes loading group instance reset times * Fixes loading battlefield templates --- src/server/game/Battlefield/BattlefieldMgr.cpp | 2 +- src/server/game/Groups/GroupMgr.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/game/Battlefield/BattlefieldMgr.cpp b/src/server/game/Battlefield/BattlefieldMgr.cpp index c62f60c03c7..bd18e579464 100644 --- a/src/server/game/Battlefield/BattlefieldMgr.cpp +++ b/src/server/game/Battlefield/BattlefieldMgr.cpp @@ -53,7 +53,7 @@ void BattlefieldMgr::InitBattlefield() { Field* fields = result->Fetch(); - uint32 typeId = fields[0].GetUInt32(); + uint32 typeId = fields[0].GetUInt8(); if (typeId >= BATTLEFIELD_MAX) { diff --git a/src/server/game/Groups/GroupMgr.cpp b/src/server/game/Groups/GroupMgr.cpp index 00065aba6aa..b2571246be8 100644 --- a/src/server/game/Groups/GroupMgr.cpp +++ b/src/server/game/Groups/GroupMgr.cpp @@ -243,7 +243,7 @@ void GroupMgr::LoadGroups() diff = 0; // default for both difficaly types } - InstanceSave* save = sInstanceSaveMgr->AddInstanceSave(mapEntry->ID, fields[2].GetUInt32(), Difficulty(diff), time_t(fields[5].GetUInt32()), fields[6].GetUInt64() == 0, true); + InstanceSave* save = sInstanceSaveMgr->AddInstanceSave(mapEntry->ID, fields[2].GetUInt32(), Difficulty(diff), time_t(fields[5].GetUInt64()), fields[6].GetUInt64() == 0, true); group->BindToInstance(save, fields[3].GetBool(), true); ++count; } -- cgit v1.2.3