aboutsummaryrefslogtreecommitdiff
path: root/src/game/GameObject.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-27 12:26:40 -0600
committermegamage <none@none>2009-02-27 12:26:40 -0600
commit4cdb56a96754c688e29dd2b53475a40135e863e3 (patch)
treeae40d02ebc1f5b343ddb07b8959ef7a7ca63d422 /src/game/GameObject.cpp
parent228e9b0322c1d26900db778b21561c3913940e81 (diff)
[7347] Prevent sql errors at GM-mode corpse save. Apply same chnages and for other pahsemask save part for consistense and safe. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/GameObject.cpp')
-rw-r--r--src/game/GameObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/GameObject.cpp b/src/game/GameObject.cpp
index 9f1c938ddd3..2e0ebfb613c 100644
--- a/src/game/GameObject.cpp
+++ b/src/game/GameObject.cpp
@@ -560,8 +560,8 @@ void GameObject::SaveToDB(uint32 mapid, uint8 spawnMask, uint32 phaseMask)
<< m_DBTableGuid << ", "
<< GetEntry() << ", "
<< mapid << ", "
- << (uint32)spawnMask << ", "
- << (uint32)GetPhaseMask() << ","
+ << uint32(spawnMask) << "," // cast to prevent save as symbol
+ << uint16(GetPhaseMask()) << "," // prevent out of range error
<< GetFloatValue(GAMEOBJECT_POS_X) << ", "
<< GetFloatValue(GAMEOBJECT_POS_Y) << ", "
<< GetFloatValue(GAMEOBJECT_POS_Z) << ", "