summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-11 16:42:07 -0300
committershennetsind <ind@henn.et>2013-04-11 16:42:07 -0300
commit12963a5aa4e6e6cbf167d44ef6e509855f725282 (patch)
tree4611e30af4c3e82cf25f42ab39a9faffd8657dfa
parent43ce3dbf3da829635869d6a7a9c6688bc0b133e3 (diff)
downloadhercules-12963a5aa4e6e6cbf167d44ef6e509855f725282.tar.gz
hercules-12963a5aa4e6e6cbf167d44ef6e509855f725282.tar.bz2
hercules-12963a5aa4e6e6cbf167d44ef6e509855f725282.tar.xz
hercules-12963a5aa4e6e6cbf167d44ef6e509855f725282.zip
Partial 09a7d4d217fb847c6853b7dd4c2cebe3868d4aff merge
Signed-off-by: shennetsind <ind@henn.et>
-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 482a9890d..29da8cfad 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2335,7 +2335,7 @@ int status_calc_pc_(struct map_session_data* sd, bool first)
memset(&status->max_hp, 0, sizeof(struct status_data)-(sizeof(status->hp)+sizeof(status->sp)));
//FIXME: Most of these stuff should be calculated once, but how do I fix the memset above to do that? [Skotlex]
- if (!pc->state.permanent_speed)
+ if (!sd->state.permanent_speed)
status->speed = DEFAULT_WALK_SPEED;
//Give them all modes except these (useful for clones)
status->mode = MD_MASK&~(MD_BOSS|MD_PLANT|MD_DETECTOR|MD_ANGRY|MD_TARGETWEAK);