mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
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)
|
||||
return false;
|
||||
|
||||
if (!player->GetSelectedUnit())
|
||||
return false;
|
||||
|
||||
Creature* creature = player->GetSelectedUnit()->ToCreature();
|
||||
|
||||
if (!creature)
|
||||
|
||||
Reference in New Issue
Block a user