mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10933] Fixed crash at modified data from client at trainer spell learn.
This commit is contained in:
parent
d38df50a7e
commit
26370b8df7
2 changed files with 2 additions and 2 deletions
|
|
@ -251,7 +251,7 @@ void WorldSession::HandleTrainerBuySpellOpcode( WorldPacket & recv_data )
|
|||
|
||||
// not found, cheat?
|
||||
TrainerSpell const* trainer_spell = cSpells->Find(spellId);
|
||||
if (!trainer_spell)
|
||||
if (!trainer_spell && tSpells)
|
||||
trainer_spell = tSpells->Find(spellId);
|
||||
|
||||
if (!trainer_spell)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue