Core: Fix Group::SetGroupMemberFlag and Pet::resetTalentsForAllPetsOf prepared statement parameters (thanks Saring)
This commit is contained in:
@@ -1745,7 +1745,7 @@ void Pet::resetTalentsForAllPetsOf(Player* owner, Pet* online_pet /*= NULL*/)
|
|||||||
|
|
||||||
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_PET_SPELL_LIST);
|
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_PET_SPELL_LIST);
|
||||||
stmt->setUInt32(0, owner->GetGUIDLow());
|
stmt->setUInt32(0, owner->GetGUIDLow());
|
||||||
stmt->setUInt32(0, except_petnumber);
|
stmt->setUInt32(1, except_petnumber);
|
||||||
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
PreparedQueryResult result = CharacterDatabase.Query(stmt);
|
||||||
|
|
||||||
if (!result)
|
if (!result)
|
||||||
|
|||||||
@@ -2136,7 +2136,7 @@ void Group::SetGroupMemberFlag(uint64 guid, bool apply, GroupMemberFlags flag)
|
|||||||
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_GROUP_MEMBER_FLAG);
|
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_UPD_GROUP_MEMBER_FLAG);
|
||||||
|
|
||||||
stmt->setUInt8(0, slot->flags);
|
stmt->setUInt8(0, slot->flags);
|
||||||
stmt->setUInt32(0, GUID_LOPART(guid));
|
stmt->setUInt32(1, GUID_LOPART(guid));
|
||||||
|
|
||||||
CharacterDatabase.Execute(stmt);
|
CharacterDatabase.Execute(stmt);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user