mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fix build
Signed-off-by: Netcho <kkotlarski@abv.bg>
This commit is contained in:
parent
417b746f29
commit
a611b24d97
1 changed files with 9 additions and 9 deletions
|
|
@ -249,7 +249,7 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
|||
return;
|
||||
}
|
||||
|
||||
data.Initialize(SMSG_TRAINER_SERVICE, 16);
|
||||
WorldPacket sendData(SMSG_TRAINER_SERVICE, 16);
|
||||
|
||||
uint32 trainState = 2;
|
||||
|
||||
|
|
@ -296,10 +296,10 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
|||
|
||||
if(trainState != 2)
|
||||
{
|
||||
data << ObjectGuid(guid);
|
||||
data << uint32(spellId);
|
||||
data << trainState;
|
||||
SendPacket(&data);
|
||||
sendData << ObjectGuid(guid);
|
||||
sendData << uint32(spellId);
|
||||
sendData << trainState;
|
||||
SendPacket(&sendData);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -321,10 +321,10 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
|||
_player->learnSpell(spellId, false);
|
||||
|
||||
|
||||
data << ObjectGuid(guid);
|
||||
data << uint32(spellId); // should be same as in packet from client
|
||||
data << uint32(2);
|
||||
SendPacket(&data);
|
||||
sendData << ObjectGuid(guid);
|
||||
sendData << uint32(spellId); // should be same as in packet from client
|
||||
sendData << uint32(2);
|
||||
SendPacket(&sendData);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue