diff --git a/source/src/worldio.cpp b/source/src/worldio.cpp index 2ad4c376..ef8dd96e 100644 --- a/source/src/worldio.cpp +++ b/source/src/worldio.cpp @@ -127,6 +127,7 @@ uchar *readmap(char *name, int *size) void writecfg(char *name, int size, uchar *data) { + if (!size) return; setnames(name); FILE *f = openfile(mcfname, "w"); if(!f) { conoutf("\f3could not write config to %s", mcfname); return; }