mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[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:
parent
e9719d5844
commit
c38c876b1d
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10872"
|
||||
#define REVISION_NR "10873"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue