diff options
author | shennetsind <ind@henn.et> | 2013-12-31 03:48:02 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-31 03:48:02 -0200 |
commit | 85327cde8e451b8b1bacd1f5a98c034a6f42e5ea (patch) | |
tree | 65e07ff554e67e42c0178f8ffc115c04afbc7a21 /src/map/status.c | |
parent | e153b614bd6c3cfb85528ce847fdcb353fe31020 (diff) | |
download | hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.tar.gz hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.tar.bz2 hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.tar.xz hercules-85327cde8e451b8b1bacd1f5a98c034a6f42e5ea.zip |
Fixed issues pointed out in Report 7909
Special Thanks to Vader.
http://hercules.ws/board/tracker/issue-7909-some-code-errors-and-optimisations/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/status.c')
-rw-r--r-- | src/map/status.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c index 7d354718d..290882e05 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -2071,9 +2071,9 @@ int status_calc_mob_(struct mob_data* md, enum e_status_calc_opt opt) { struct status_data *masterstatus = status->get_base_status(mbl); if ( masterstatus ) { if( battle_config.slaves_inherit_speed&(masterstatus->mode&MD_CANMOVE?1:2) ) - masterstatus->speed = masterstatus->speed; - if( masterstatus->speed < 2 ) /* minimum for the unit to function properly */ - masterstatus->speed = 2; + mstatus->speed = masterstatus->speed; + if( mstatus->speed < 2 ) /* minimum for the unit to function properly */ + mstatus->speed = 2; } } |