diff options
author | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-31 13:36:00 +0000 |
---|---|---|
committer | gepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-01-31 13:36:00 +0000 |
commit | efe35d69e31918c87c1b56528ca1c574b5b86b0d (patch) | |
tree | 8c51d143ccf21fc8469e24927a4d2684e9d03983 /src/map | |
parent | 1769d69d1caa636ccdf8fab9e80e50fb1624b38d (diff) | |
download | hercules-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')
-rw-r--r-- | src/map/status.c | 2 |
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); } |