mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19: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?
|
// not found, cheat?
|
||||||
TrainerSpell const* trainer_spell = cSpells->Find(spellId);
|
TrainerSpell const* trainer_spell = cSpells->Find(spellId);
|
||||||
if (!trainer_spell)
|
if (!trainer_spell && tSpells)
|
||||||
trainer_spell = tSpells->Find(spellId);
|
trainer_spell = tSpells->Find(spellId);
|
||||||
|
|
||||||
if (!trainer_spell)
|
if (!trainer_spell)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10932"
|
#define REVISION_NR "10933"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue