[10873] Fixed crash for case when trainer have only data in npc_trainer_template.

Good know base at report that this feature so quick start used actively ;)
This commit is contained in:
VladimirMangos 2010-12-14 13:26:06 +03:00
parent e9719d5844
commit c38c876b1d
2 changed files with 2 additions and 2 deletions

View file

@ -168,7 +168,7 @@ void WorldSession::SendTrainerList(ObjectGuid guid, const std::string& strTitle)
WorldPacket data( SMSG_TRAINER_LIST, 8+4+4+maxcount*38 + strTitle.size()+1);
data << ObjectGuid(guid);
data << uint32(cSpells->trainerType ? cSpells->trainerType : tSpells->trainerType);
data << uint32(cSpells && cSpells->trainerType ? cSpells->trainerType : tSpells->trainerType);
size_t count_pos = data.wpos();
data << uint32(maxcount);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10872"
#define REVISION_NR "10873"
#endif // __REVISION_NR_H__