Core/Spells: Better solution for exploit check (Thanks to manuel)

Readd lost changes from char db type cleanup
This commit is contained in:
leak
2011-01-20 03:06:51 +01:00
parent f7af49291b
commit dd751242fc
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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