diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-16 23:26:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 14:49:04 +0300 |
commit | a929202e304d2cd3d5873272ea5ecb6a0371e314 (patch) | |
tree | 43b5c03ebdbce7e341da6454fa24ef4831dd1c84 /src/map/homunculus.h | |
parent | d1f1c93fb7167c2c830e3ceb497feac39fce950b (diff) | |
download | hercules-a929202e304d2cd3d5873272ea5ecb6a0371e314.tar.gz hercules-a929202e304d2cd3d5873272ea5ecb6a0371e314.tar.bz2 hercules-a929202e304d2cd3d5873272ea5ecb6a0371e314.tar.xz hercules-a929202e304d2cd3d5873272ea5ecb6a0371e314.zip |
Reduce memory usage in HPM in homunculus.c
Diffstat (limited to 'src/map/homunculus.h')
-rw-r--r-- | src/map/homunculus.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/homunculus.h b/src/map/homunculus.h index 32e48b1e9..95b613fff 100644 --- a/src/map/homunculus.h +++ b/src/map/homunculus.h @@ -99,12 +99,16 @@ enum homun_type { HT_INVALID = -1, // Invalid Homunculus }; -/* homunculus.c interface */ -struct homunculus_interface { +struct homun_dbs { unsigned int exptable[MAX_LEVEL]; struct view_data viewdb[MAX_HOMUNCULUS_CLASS]; struct s_homunculus_db db[MAX_HOMUNCULUS_CLASS]; struct homun_skill_tree_entry skill_tree[MAX_HOMUNCULUS_CLASS][MAX_SKILL_TREE]; +}; + +/* homunculus.c interface */ +struct homunculus_interface { + struct homun_dbs *dbs; /* */ void (*init) (bool minimal); void (*final) (void); |