[11935] Check display Id for .modify morph command

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
MacWarriors 2012-03-29 22:49:23 +02:00 committed by Schmoozerd
parent 3798f549e6
commit 05c774a0ad
2 changed files with 11 additions and 3 deletions

View file

@ -2453,7 +2453,15 @@ bool ChatHandler::HandleModifyMorphCommand(char* args)
if (!*args)
return false;
uint16 display_id = (uint16)atoi(args);
uint32 display_id = (uint32)atoi(args);
CreatureDisplayInfoEntry const* displayEntry = sCreatureDisplayInfoStore.LookupEntry(display_id);
if (!displayEntry)
{
SendSysMessage(LANG_BAD_VALUE);
SetSentErrorMessage(true);
return false;
}
Unit* target = getSelectedUnit();
if (!target)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11934"
#define REVISION_NR "11935"
#endif // __REVISION_NR_H__