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
This commit is contained in:
helixhorned 2013-11-18 10:51:26 +00:00
parent 2972155f14
commit ffed49b395

View file

@ -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*/);