Core/Corpse: Fix indexing in Corpse::SaveToDB(). Thanks @Ciclop

This commit is contained in:
Nay
2011-11-25 20:49:03 +00:00
parent ec54bb4895
commit 8d3bc5e8b9

View File

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