mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
fix(Core): Fixed a few crashes/bugs that were found via static code analysis (#2617)
This commit is contained in:
@@ -603,11 +603,12 @@ public:
|
||||
static bool HandleNpcSetOriginalFaction(ChatHandler* handler, const char* /*args*/)
|
||||
{
|
||||
Player* me = handler->GetSession()->GetPlayer();
|
||||
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
||||
|
||||
if (!me)
|
||||
return false;
|
||||
|
||||
Creature* creature = me->GetSelectedUnit()->ToCreature();
|
||||
|
||||
if (!creature)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user