From efe35d69e31918c87c1b56528ca1c574b5b86b0d Mon Sep 17 00:00:00 2001 From: gepard1984 Date: Tue, 31 Jan 2012 13:36:00 +0000 Subject: 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 --- src/map/status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2