Scripts/Commands: Fix crash caused by .set npc model (#22877)
* Scripts/Commands: Fix crash caused by .set npc model Fix crash caused by .set npc model with invalid model id (cherry picked from commit 20ea24bf5ccf165ce19139d1f7ec7c650719eb68)
This commit is contained in:
@@ -734,7 +734,7 @@ public:
|
||||
|
||||
if (rankThresholdItr == end)
|
||||
{
|
||||
handler->PSendSysMessage(LANG_COMMAND_FACTION_INVPARAM, rankTxt);
|
||||
handler->PSendSysMessage(LANG_COMMAND_INVALID_PARAM, rankTxt);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user