From 973fd376e58eae48c8c2532038ad91b0f081906a Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Mon, 6 Apr 2020 08:23:57 -0400 Subject: [PATCH] Propose change in location of Stun check as possible resolution to crash --- zone/npc.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zone/npc.cpp b/zone/npc.cpp index b7dc3272a..39b1b046b 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -694,11 +694,6 @@ void NPC::RemoveCash() { bool NPC::Process() { - if (IsStunned() && stunned_timer.Check()) { - Mob::UnStun(); - this->spun_timer.Disable(); - } - if (p_depop) { Mob* owner = entity_list.GetMob(this->ownerid); @@ -711,6 +706,11 @@ bool NPC::Process() } return false; } + + if (IsStunned() && stunned_timer.Check()) { + Mob::UnStun(); + this->spun_timer.Disable(); + } SpellProcess();