Updated custom commands made.

This commit is contained in:
talamortis
2018-08-05 00:52:10 +01:00
parent cbf7bc2d3f
commit a47876ebd9

View File

@@ -580,11 +580,13 @@ public:
static bool HandleNpcSetFactionTempIdCommand(ChatHandler* handler, const char* args)
{
Player* me = handler->GetSession()->GetPlayer();
Creature* creature = me->GetSelectedUnit()->ToCreature();
Unit* SelectedCreature = me->GetSelectedUnit();
if (!me)
if (!SelectedCreature)
return false;
Creature* creature = SelectedCreature->ToCreature();
if (!creature)
return false;
@@ -598,7 +600,7 @@ public:
}
//set orginal faction for npc
static bool HandleNpcSetOriginalFaction(ChatHandler* handler, const char* args)
static bool HandleNpcSetOriginalFaction(ChatHandler* handler, const char* /*args*/)
{
Player* me = handler->GetSession()->GetPlayer();
Creature* creature = me->GetSelectedUnit()->ToCreature();