summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-31 13:36:00 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-31 13:36:00 +0000
commitefe35d69e31918c87c1b56528ca1c574b5b86b0d (patch)
tree8c51d143ccf21fc8469e24927a4d2684e9d03983 /src/map/status.c
parent1769d69d1caa636ccdf8fab9e80e50fb1624b38d (diff)
downloadhercules-efe35d69e31918c87c1b56528ca1c574b5b86b0d.tar.gz
hercules-efe35d69e31918c87c1b56528ca1c574b5b86b0d.tar.bz2
hercules-efe35d69e31918c87c1b56528ca1c574b5b86b0d.tar.xz
hercules-efe35d69e31918c87c1b56528ca1c574b5b86b0d.zip
Fixed possible monster speed underflow when mobs leveling up is enabled (bugreport:2237).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15529 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 2f36cd6f6..d15343d91 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1786,7 +1786,7 @@ int status_calc_mob_(struct mob_data* md, bool first)
status->max_sp += diff*status->int_;
status->hp = status->max_hp;
status->sp = status->max_sp;
- status->speed -= diff;
+ status->speed -= cap_value(diff, 0, status->speed - 10);
}