Fix crash issue with nested console script execution

git-svn-id: https://svn.eduke32.com/eduke32@6534 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-12-02 08:44:59 +00:00
parent bf2047bc0f
commit a18d03635c

View file

@ -193,6 +193,8 @@ int OSD_Exec(const char *szScript)
return 1;
}
kclose(handle);
buf[len] = 0;
osd->execdepth++;
@ -205,7 +207,6 @@ int OSD_Exec(const char *szScript)
}
osd->execdepth--;
kclose(handle);
Bfree(buf);
return 0;
}