diff options
| author | megamage <none@none> | 2009-08-24 20:25:32 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-24 20:25:32 -0500 |
| commit | 4a1a82c5e223ab5fa35ae898783c7771fc73fef4 (patch) | |
| tree | 4563cf0eadbd406144a12b65d8d6d850df46b06d /src/game/Player.cpp | |
| parent | aa86640fdfef00e1394d4ea3a6febf7f3e7b775c (diff) | |
[8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index 6e362a8571e..326e04e27c2 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -6491,7 +6491,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; |
