Core/Corpse: Fix indexing in Corpse::SaveToDB(). Thanks @Ciclop
This commit is contained in:
@@ -108,7 +108,7 @@ void Corpse::SaveToDB()
|
|||||||
|
|
||||||
uint16 index = 0;
|
uint16 index = 0;
|
||||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_ADD_CORPSE);
|
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->setUInt32(index++, GUID_LOPART(GetOwnerGUID())); // guid
|
||||||
stmt->setFloat (index++, GetPositionX()); // posX
|
stmt->setFloat (index++, GetPositionX()); // posX
|
||||||
stmt->setFloat (index++, GetPositionY()); // posY
|
stmt->setFloat (index++, GetPositionY()); // posY
|
||||||
|
|||||||
Reference in New Issue
Block a user