mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 04:37:01 +00:00
[12734] damn
This commit is contained in:
parent
0f76f212a9
commit
5371320880
2 changed files with 4 additions and 4 deletions
|
|
@ -802,7 +802,7 @@ void WorldSession::HandleSetPetSlotOpcode(WorldPacket& recv_data)
|
||||||
|
|
||||||
int32 destId = 0;
|
int32 destId = 0;
|
||||||
|
|
||||||
if (result = CharacterDatabase.PQuery("SELECT id, entry FROM character_pet WHERE owner = '%u' AND actual_slot = '%u'", _player->GetGUIDLow(), petNumber))
|
if (result = CharacterDatabase.PQuery("SELECT id, entry FROM character_pet WHERE owner = '%u' AND slot = '%u'", _player->GetGUIDLow(), petNumber))
|
||||||
{
|
{
|
||||||
|
|
||||||
destId = (*result)[0].GetUInt32();
|
destId = (*result)[0].GetUInt32();
|
||||||
|
|
@ -840,9 +840,9 @@ void WorldSession::HandleSetPetSlotOpcode(WorldPacket& recv_data)
|
||||||
|
|
||||||
CharacterDatabase.BeginTransaction();
|
CharacterDatabase.BeginTransaction();
|
||||||
|
|
||||||
CharacterDatabase.PExecute("UPDATE `character_pet` SET `slot` = '%u', `actual_slot` = '%u' WHERE `id` = '%u'", newSlot, newSlot, srcId);
|
CharacterDatabase.PExecute("UPDATE `character_pet` SET `slot` = '%u', `slot` = '%u' WHERE `id` = '%u'", newSlot, newSlot, srcId);
|
||||||
if (destId)
|
if (destId)
|
||||||
CharacterDatabase.PExecute("UPDATE `character_pet` SET `slot` = '%u', `actual_slot` = '%u' WHERE `id` = '%u'", slot, slot, destId);
|
CharacterDatabase.PExecute("UPDATE `character_pet` SET `slot` = '%u', `slot` = '%u' WHERE `id` = '%u'", slot, slot, destId);
|
||||||
|
|
||||||
CharacterDatabase.CommitTransaction();
|
CharacterDatabase.CommitTransaction();
|
||||||
SendStableResult(newSlot < PET_SAVE_FIRST_STABLE_SLOT ? STABLE_SUCCESS_STABLE : STABLE_SUCCESS_UNSTABLE);
|
SendStableResult(newSlot < PET_SAVE_FIRST_STABLE_SLOT ? STABLE_SUCCESS_STABLE : STABLE_SUCCESS_UNSTABLE);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12735"
|
#define REVISION_NR "12734"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue