[10933] Fixed crash at modified data from client at trainer spell learn.

This commit is contained in:
VladimirMangos 2010-12-29 02:48:06 +03:00
parent d38df50a7e
commit 26370b8df7
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10932"
#define REVISION_NR "10933"
#endif // __REVISION_NR_H__