fix(Scripts/Commands): solve crash in .npc move (#10825)

This commit is contained in:
IntelligentQuantum
2022-03-02 17:26:48 +03:30
committed by GitHub
parent bd4f0a871e
commit 5d51b0060c

View File

@@ -703,11 +703,12 @@ public:
static bool HandleNpcMoveCommand(ChatHandler* handler)
{
Creature* creature = handler->getSelectedCreature();
ObjectGuid::LowType lowguid = creature->GetSpawnId();
if (!creature)
return false;
ObjectGuid::LowType lowguid = creature->GetSpawnId();
CreatureData const* data = sObjectMgr->GetCreatureData(lowguid);
if (!data)
{