fix(Scripts/Commands): Fix crash when using npc set origin faction wi… (#20536)

This commit is contained in:
Andrew
2024-11-12 15:39:48 -03:00
committed by GitHub
parent dffdb63514
commit f8d53d4cd8

View File

@@ -483,6 +483,9 @@ public:
if (!player)
return false;
if (!player->GetSelectedUnit())
return false;
Creature* creature = player->GetSelectedUnit()->ToCreature();
if (!creature)