summaryrefslogtreecommitdiff
path: root/src/map/map.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-24 18:23:37 -0300
committershennetsind <ind@henn.et>2014-02-24 18:23:37 -0300
commit142a8f463120274fd9915a8a3a604d27ce42c43d (patch)
treedcf2419166ce8b8748c5e1060b5fdbca3b7cb06f /src/map/map.h
parent3c87f3a57294b41a0c3c6af953a37ffcad9c8f19 (diff)
downloadhercules-142a8f463120274fd9915a8a3a604d27ce42c43d.tar.gz
hercules-142a8f463120274fd9915a8a3a604d27ce42c43d.tar.bz2
hercules-142a8f463120274fd9915a8a3a604d27ce42c43d.tar.xz
hercules-142a8f463120274fd9915a8a3a604d27ce42c43d.zip
MEMORY SLAHER IS IN TOWN
And 19mb of memory goes down (32bit users should get a ~8.5mb memory reduction) Special Thanks to pan! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.h')
-rw-r--r--src/map/map.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/map.h b/src/map/map.h
index aed506992..270931689 100644
--- a/src/map/map.h
+++ b/src/map/map.h
@@ -875,13 +875,14 @@ struct map_interface {
DBMap* iwall_db;
/* order respected by map_defaults() in order to zero */
/* from block_free until zone_pk */
- struct block_list *block_free[block_free_max];
- int block_free_count, block_free_lock;
- struct block_list *bl_list[BL_LIST_MAX];
- int bl_list_count;
+ struct block_list **block_free;
+ int block_free_count, block_free_lock, block_free_list_size;
+ struct block_list **bl_list;
+ int bl_list_count, bl_list_size;
struct block_list bl_head;
struct map_zone_data zone_all;/* used as a base on all maps */
struct map_zone_data zone_pk;/* used for (pk_mode) */
+ /* */
struct map_session_data *cpsd;
struct map_data *list;
/* [Ind/Hercules] */