summaryrefslogtreecommitdiff
path: root/src/map/chrif.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/chrif.c')
-rw-r--r--src/map/chrif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index c725ff30a..0ab4aec51 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -20,6 +20,7 @@
#include "skill.h"
#include "status.h"
#include "homunculus.h"
+#include "instance.h"
#include "mercenary.h"
#include "chrif.h"
#include "quest.h"
@@ -316,9 +317,9 @@ int chrif_sendmap(int fd)
int i;
ShowStatus("Sending maps to char server...\n");
// Sending normal maps, not instances
- WFIFOHEAD(fd, 4 + map_instance_start * 4);
+ WFIFOHEAD(fd, 4 + instance_start * 4);
WFIFOW(fd,0) = 0x2afa;
- for(i = 0; i < map_instance_start; i++)
+ for(i = 0; i < instance_start; i++)
WFIFOW(fd,4+i*4) = map[i].index;
WFIFOW(fd,2) = 4 + i * 4;
WFIFOSET(fd,WFIFOW(fd,2));