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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.Initialize(SMSG_TRAINER_SERVICE, 16);
|
WorldPacket sendData(SMSG_TRAINER_SERVICE, 16);
|
||||||
|
|
||||||
uint32 trainState = 2;
|
uint32 trainState = 2;
|
||||||
|
|
||||||
|
|
@ -296,10 +296,10 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
||||||
|
|
||||||
if(trainState != 2)
|
if(trainState != 2)
|
||||||
{
|
{
|
||||||
data << ObjectGuid(guid);
|
sendData << ObjectGuid(guid);
|
||||||
data << uint32(spellId);
|
sendData << uint32(spellId);
|
||||||
data << trainState;
|
sendData << trainState;
|
||||||
SendPacket(&data);
|
SendPacket(&sendData);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -321,10 +321,10 @@ void WorldSession::HandleTrainerBuySpellOpcode(WorldPacket& recv_data)
|
||||||
_player->learnSpell(spellId, false);
|
_player->learnSpell(spellId, false);
|
||||||
|
|
||||||
|
|
||||||
data << ObjectGuid(guid);
|
sendData << ObjectGuid(guid);
|
||||||
data << uint32(spellId); // should be same as in packet from client
|
sendData << uint32(spellId); // should be same as in packet from client
|
||||||
data << uint32(2);
|
sendData << uint32(2);
|
||||||
SendPacket(&data);
|
SendPacket(&sendData);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue