From c9f74f5538dd73a507b351783ff05e828d1b1089 Mon Sep 17 00:00:00 2001 From: BrutalSystem Date: Mon, 8 Nov 2021 23:26:59 -0300 Subject: [PATCH] fixing broken cfg/sendmap --- source/src/worldio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 6c212af5..01595276 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -91,7 +91,7 @@ uchar *readmcfggz(const char *name, int *size, int *sizegz) { setnames(name); uchar *gzbuf = new uchar[GZBUFSIZE]; - uchar *data = (uchar*)loadfile(mcfname, size, "r"); + uchar *data = (uchar*)loadfile(mcfname, size, "rb"); if(data && *size < MAXCFGFILESIZE) { uLongf gzbufsize = GZBUFSIZE;