[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:
Triply 2009-08-23 18:11:51 +02:00
parent 512cb786ee
commit efa24ced49
6 changed files with 51 additions and 37 deletions

View file

@ -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;