summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-29 20:11:12 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-29 20:11:12 +0000
commitc2e9dc776639a58be9c073e4deeabb231d326297 (patch)
treec064989352a43f9ec0dab5e5c2932d580a919d7c /src/map/status.c
parent04190264ba7007c84a69b21ac65b3779841cc04b (diff)
downloadhercules-c2e9dc776639a58be9c073e4deeabb231d326297.tar.gz
hercules-c2e9dc776639a58be9c073e4deeabb231d326297.tar.bz2
hercules-c2e9dc776639a58be9c073e4deeabb231d326297.tar.xz
hercules-c2e9dc776639a58be9c073e4deeabb231d326297.zip
- Added overflow protection to @main whisper parsing.
- Fixed a bug in slaves_inherit_speed - Miscellanous silly cleanups (format, unnecessary assignments, comments, etc) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9367 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 6c97a70b3..6f7e2b154 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1321,7 +1321,7 @@ int status_calc_mob(struct mob_data* md, int first)
if (flag&8 && mbl) {
struct status_data *mstatus = status_get_base_status(mbl);
if (mstatus &&
- battle_config.slaves_inherit_speed&(status->mode&MD_CANMOVE?1:2))
+ battle_config.slaves_inherit_speed&(mstatus->mode&MD_CANMOVE?1:2))
status->speed = mstatus->speed;
}