fix(Scripts/Commands): Fix crash when using npc set origin faction wi… (#20536)
This commit is contained in:
@@ -483,6 +483,9 @@ public:
|
|||||||
if (!player)
|
if (!player)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (!player->GetSelectedUnit())
|
||||||
|
return false;
|
||||||
|
|
||||||
Creature* creature = player->GetSelectedUnit()->ToCreature();
|
Creature* creature = player->GetSelectedUnit()->ToCreature();
|
||||||
|
|
||||||
if (!creature)
|
if (!creature)
|
||||||
|
|||||||
Reference in New Issue
Block a user