aboutsummaryrefslogtreecommitdiff
path: root/src/game/Creature.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/Creature.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/Creature.cpp')
-rw-r--r--src/game/Creature.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index bc8105abcc1..52404842673 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -1245,8 +1245,8 @@ void Creature::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
<< displayId <<","
<< GetEquipmentId() <<","
<< GetPositionX() << ","