diff options
author | Nay <dnpd.dd@gmail.com> | 2011-11-25 20:49:03 +0000 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2011-11-25 20:49:03 +0000 |
commit | 8d3bc5e8b9515499f366ec7173d70978bb0009e7 (patch) | |
tree | 94b50074339860475d886e806a49eddca3819c88 | |
parent | ec54bb48952fb0f766c61976f736ad727f9aadd0 (diff) |
Core/Corpse: Fix indexing in Corpse::SaveToDB(). Thanks @Ciclop
-rwxr-xr-x | src/server/game/Entities/Corpse/Corpse.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Corpse/Corpse.cpp b/src/server/game/Entities/Corpse/Corpse.cpp index ff8c93ec404..43f3a085748 100755 --- a/src/server/game/Entities/Corpse/Corpse.cpp +++ b/src/server/game/Entities/Corpse/Corpse.cpp @@ -108,7 +108,7 @@ void Corpse::SaveToDB() uint16 index = 0; PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_ADD_CORPSE); - stmt->setUInt32(index, GetGUIDLow()); // corpseGuid + stmt->setUInt32(index++, GetGUIDLow()); // corpseGuid stmt->setUInt32(index++, GUID_LOPART(GetOwnerGUID())); // guid stmt->setFloat (index++, GetPositionX()); // posX stmt->setFloat (index++, GetPositionY()); // posY |