Propose change in location of Stun check as possible resolution to crash

This commit is contained in:
Paul Coene 2020-04-06 08:23:57 -04:00 committed by GitHub
parent 6f846dc4ff
commit 973fd376e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
@ -712,6 +707,11 @@ bool NPC::Process()
return false;
}
if (IsStunned() && stunned_timer.Check()) {
Mob::UnStun();
this->spun_timer.Disable();
}
SpellProcess();
if (mob_scan_close.Check()) {