mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
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
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user