mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>
This commit is contained in:
parent
512cb786ee
commit
efa24ced49
6 changed files with 51 additions and 37 deletions
|
|
@ -6189,7 +6189,8 @@ uint32 Player::GetZoneIdFromDB(uint64 guid)
|
|||
|
||||
zone = MapManager::Instance().GetZoneId(map,posx,posy,posz);
|
||||
|
||||
CharacterDatabase.PExecute("UPDATE characters SET zone='%u' WHERE guid='%u'", zone, guidLow);
|
||||
if (zone > 0)
|
||||
CharacterDatabase.PExecute("UPDATE characters SET zone='%u' WHERE guid='%u'", zone, guidLow);
|
||||
}
|
||||
|
||||
return zone;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue