diff options
author | Haru <haru@dotalux.com> | 2016-12-03 04:20:55 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-12-03 15:38:58 +0100 |
commit | c1b4b0b2fb1066087e928e9440b40edd185b188e (patch) | |
tree | 61fb624792d54db3668601df7f95f03eb30d8baf /src/map/elemental.c | |
parent | a222f21b459eb6abc0862695526c1d15361a99e0 (diff) | |
download | hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.tar.gz hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.tar.bz2 hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.tar.xz hercules-c1b4b0b2fb1066087e928e9440b40edd185b188e.zip |
Remove the platform-dependent variables from struct status_data
`struct status_data::class_` was platform dependent since
c30bb75ec50624429bff7b4106db4be0fda366d6 in order to silence some
compile warnings (uint32 on 64 bit builds and uint16 on 32 bit builds).
It's now been changed to the correct type, int32, on all platforms.
Since the change has potential to silently break third party code, the
variable was renamed to `class`.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/elemental.c')
-rw-r--r-- | src/map/elemental.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/elemental.c b/src/map/elemental.c index 76b7ba24b..ae1fda0a2 100644 --- a/src/map/elemental.c +++ b/src/map/elemental.c @@ -704,7 +704,7 @@ int elemental_ai_sub_timer(struct elemental_data *ed, struct map_session_data *s if( DIFF_TICK(tick,ed->last_spdrain_time) >= 10000 ){// Drain SP every 10 seconds int sp = 5; - switch (ed->vd->class_) { + switch (ed->vd->class) { case ELEID_EL_AGNI_M: case ELEID_EL_AQUA_M: case ELEID_EL_VENTUS_M: @@ -864,7 +864,7 @@ int read_elementaldb(void) { db->lv = atoi(str[3]); estatus = &db->status; - db->vd.class_ = db->class_; + db->vd.class = db->class_; estatus->max_hp = atoi(str[4]); estatus->max_sp = atoi(str[5]); |