Core/Spells: Better solution for exploit check (Thanks to manuel)
Readd lost changes from char db type cleanup
This commit is contained in:
@@ -17549,11 +17549,11 @@ void Player::_LoadBoundInstances(PreparedQueryResult result)
|
||||
Field* fields = result->Fetch();
|
||||
|
||||
bool perm = fields[1].GetBool();
|
||||
uint32 mapId = fields[2].GetUInt32();
|
||||
uint32 mapId = fields[2].GetUInt16();
|
||||
uint32 instanceId = fields[0].GetUInt32();
|
||||
uint8 difficulty = fields[3].GetUInt8();
|
||||
|
||||
time_t resetTime = (time_t)fields[4].GetUInt64();
|
||||
time_t resetTime = time_t(fields[4].GetUInt32());
|
||||
// the resettime for normal instances is only saved when the InstanceSave is unloaded
|
||||
// so the value read from the DB may be wrong here but only if the InstanceSave is loaded
|
||||
// and in that case it is not used
|
||||
|
||||
Reference in New Issue
Block a user