summaryrefslogtreecommitdiff
path: root/src/map/homunculus.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-16 23:26:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-25 14:49:04 +0300
commita929202e304d2cd3d5873272ea5ecb6a0371e314 (patch)
tree43b5c03ebdbce7e341da6454fa24ef4831dd1c84 /src/map/homunculus.h
parentd1f1c93fb7167c2c830e3ceb497feac39fce950b (diff)
downloadhercules-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.h8
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);