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 71324f02a..aba1accee 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -313,9 +313,10 @@ int chrif_sendmap(int fd)
{
int i;
ShowStatus("Sending maps to char server...\n");
- WFIFOHEAD(fd, 4 + map_num * 4);
+ // Sending normal maps, not instances
+ WFIFOHEAD(fd, 4 + map_instance_start * 4);
WFIFOW(fd,0) = 0x2afa;
- for(i = 0; i < map_num; i++)
+ for(i = 0; i < map_instance_start; i++)
WFIFOW(fd,4+i*4) = map[i].index;
WFIFOW(fd,2) = 4 + i * 4;
WFIFOSET(fd,WFIFOW(fd,2));