summaryrefslogtreecommitdiff
path: root/src/map/battle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/battle.cpp')
-rw-r--r--src/map/battle.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/battle.cpp b/src/map/battle.cpp
index 97edeb3..6f01ac7 100644
--- a/src/map/battle.cpp
+++ b/src/map/battle.cpp
@@ -2028,7 +2028,7 @@ ATK battle_weapon_attack(struct block_list *src, struct block_list *target,
wd.amotion, wd.dmotion, 0, 1, DamageType::NORMAL, 0);
}
- map_freeblock_lock();
+ MapBlockLock lock;
if (src->type == BL::PC)
{
@@ -2103,8 +2103,6 @@ ATK battle_weapon_attack(struct block_list *src, struct block_list *target,
pc_heal(sd, hp, sp);
}
}
-
- map_freeblock_unlock();
}
return wd.dmg_lv;
}