summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-28 12:49:34 -0300
committershennetsind <ind@henn.et>2013-09-28 12:49:34 -0300
commite4b0f270ad0fabab869c1a803fa8e4a73f198760 (patch)
tree45f5f5f40e85f2d10e20ca55f6148accfe954a33 /src/map/map.c
parent3c006ce2b772ae0dffc5fccaee6e547bf0423565 (diff)
downloadhercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.tar.gz
hercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.tar.bz2
hercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.tar.xz
hercules-e4b0f270ad0fabab869c1a803fa8e4a73f198760.zip
HPM: Instance.c Completed
Moved missing vars and declarations of interest into the interface. Instance data now available to plugins via instance->list (struct instance_data array) Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 5d58fd30e..37f0817c4 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -624,8 +624,8 @@ int map_foreachininstance(int (*func)(struct block_list*, va_list), int16 instan
int i;
int returnCount = 0;
- for (i = 0; i < instances[instance_id].num_map; i++) {
- int m = instances[instance_id].map[i];
+ for (i = 0; i < instance->list[instance_id].num_map; i++) {
+ int m = instance->list[instance_id].map[i];
va_list ap;
va_start(ap, type);
returnCount += map_vforeachinmap(func, m, type, ap);