From ffed49b395acc9cef3810b8dff404fa560e44f56 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 18 Nov 2013 10:51:26 +0000 Subject: [PATCH] Amend r4142: make e.g. 'include a' (names shorter 4 chars) append ".m32". DONT_BUILD. git-svn-id: https://svn.eduke32.com/eduke32@4168 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/m32def.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/m32def.c b/polymer/eduke32/source/m32def.c index f4f38fc9f..e52d74ac0 100644 --- a/polymer/eduke32/source/m32def.c +++ b/polymer/eduke32/source/m32def.c @@ -3741,7 +3741,7 @@ void C_Compile(const char *filenameortext, int32_t isfilename) fp = kopen4load(mptr, 0 /*g_loadFromGroupOnly*/); if (fp == -1) // JBF: was 0 { - if (fs >= 4 && Bmemcmp(&mptr[fs-4], ".m32", 4) != 0) + if (fs < 4 || Bmemcmp(&mptr[fs-4], ".m32", 4) != 0) { Bstrcat(&mptr[fs], ".m32"); fp = kopen4load(mptr, 0 /*g_loadFromGroupOnly*/);