summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-09-24 00:17:33 -0500
committerwushin <pasekei@gmail.com>2015-09-24 00:22:34 -0500
commit4dd5e85db6d2958c95c1b2511089f5219f24af37 (patch)
treee99fdae8ede67586f8d8dcdd96f1d0e74f1d39f1
parent5dac6c5ff0f1e2883ce923dfe2f70b638c2a4118 (diff)
downloadtmwa-4dd5e85db6d2958c95c1b2511089f5219f24af37.tar.gz
tmwa-4dd5e85db6d2958c95c1b2511089f5219f24af37.tar.bz2
tmwa-4dd5e85db6d2958c95c1b2511089f5219f24af37.tar.xz
tmwa-4dd5e85db6d2958c95c1b2511089f5219f24af37.zip
Fix warp mob freeze bug
-rw-r--r--src/map/mob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/mob.cpp b/src/map/mob.cpp
index d037972..9fe6b2d 100644
--- a/src/map/mob.cpp
+++ b/src/map/mob.cpp
@@ -804,10 +804,10 @@ int mob_attack(dumb_ptr<mob_data> md, tick_t tick)
nullpo_retz(md);
- if ((tbl = map_id2bl(md->target_id)) == nullptr)
+ if (!mob_check_attack(md))
return 0;
- if (!mob_check_attack(md))
+ if ((tbl = map_id2bl(md->target_id)) == nullptr)
return 0;
if (battle_config.monster_attack_direction_change)