diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-17 15:17:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 14:49:05 +0300 |
commit | 58a97dc5edd22bbc7abb40554d19876a43077376 (patch) | |
tree | bfeb34a14947e14c7bc2bb301cd843b50cc3d739 /src/map/status.h | |
parent | c654c6d8d29d41f404545342cceb41aa7f3c5817 (diff) | |
download | hercules-58a97dc5edd22bbc7abb40554d19876a43077376.tar.gz hercules-58a97dc5edd22bbc7abb40554d19876a43077376.tar.bz2 hercules-58a97dc5edd22bbc7abb40554d19876a43077376.tar.xz hercules-58a97dc5edd22bbc7abb40554d19876a43077376.zip |
Reduce memory usage in HPM in status.c
Diffstat (limited to 'src/map/status.h')
-rw-r--r-- | src/map/status.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/map/status.h b/src/map/status.h index 4bda57fa9..9143df6ae 100644 --- a/src/map/status.h +++ b/src/map/status.h @@ -1928,17 +1928,7 @@ struct s_refine_info { int randombonus_max[MAX_REFINE]; // cumulative maximum random bonus damage }; -/*===================================== -* Interface : status.h -* Generated by HerculesInterfaceMaker -* created by Susu -*-------------------------------------*/ -struct status_interface { - - /* vars */ - int current_equip_item_index; - int current_equip_card_id; - +struct s_status_dbs { BEGIN_ZEROED_BLOCK; /* Everything within this block will be memset to 0 when status_defaults() is executed */ int max_weight_base[CLASS_COUNT]; int HP_table[CLASS_COUNT][MAX_LEVEL + 1]; @@ -1957,6 +1947,20 @@ BEGIN_ZEROED_BLOCK; /* Everything within this block will be memset to 0 when sta char job_bonus[CLASS_COUNT][MAX_LEVEL]; sc_conf_type sc_conf[SC_MAX]; END_ZEROED_BLOCK; /* End */ +}; + +/*===================================== +* Interface : status.h +* Generated by HerculesInterfaceMaker +* created by Susu +*-------------------------------------*/ +struct status_interface { + + /* vars */ + int current_equip_item_index; + int current_equip_card_id; + + struct s_status_dbs *dbs; struct eri *data_ers; //For sc_data entries struct status_data dummy; |