summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp+git@gmail.com>2024-04-29 08:36:26 +0000
committerFreeyorp <TheFreeYorp+git@gmail.com>2024-04-29 12:43:39 +0000
commitbafec99026144d807bb140b6daf86853c4603e51 (patch)
treef159b8bbe8ca4599f07103b67b3d1a195092a7ca
parent89a49910c30769ed85a715d003fdcbbced44feee (diff)
downloadtmwa-bafec99026144d807bb140b6daf86853c4603e51.tar.gz
tmwa-bafec99026144d807bb140b6daf86853c4603e51.tar.bz2
tmwa-bafec99026144d807bb140b6daf86853c4603e51.tar.xz
tmwa-bafec99026144d807bb140b6daf86853c4603e51.zip
mob: Avoid dangling else
-rw-r--r--src/map/mob.cpp2
1 files changed, 2 insertions, 0 deletions
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<block_list> src, dumb_ptr<mob_data> md, int damage,
// activity
if (sd)
+ {
if (sd->activity.attacks == 2147483647)
sd->activity.attacks = 1;
else
sd->activity.attacks++;
+ }
if (md->hp > 0)
{