From bafec99026144d807bb140b6daf86853c4603e51 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Mon, 29 Apr 2024 08:36:26 +0000 Subject: mob: Avoid dangling else --- src/map/mob.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/mob.cpp b/src/map/mob.cpp index f2f6815..996e2bb 100644 --- a/src/map/mob.cpp +++ b/src/map/mob.cpp @@ -2556,10 +2556,12 @@ int mob_damage(dumb_ptr src, dumb_ptr md, int damage, // activity if (sd) + { if (sd->activity.attacks == 2147483647) sd->activity.attacks = 1; else sd->activity.attacks++; + } if (md->hp > 0) { -- cgit v1.2.3-70-g09d2