diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index bec489f0a..20ac19186 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -9293,6 +9293,12 @@ static void SaveInHistory(const char *commandstr) { int32_t i, idx, dosave=1; + // If running with osdtryscript=1, we could receive e.g. + // "// this file is automatically generated by Mapster32" + // from m32_config.cfg here. + if (!Bstrncmp(commandstr, "//", 2)) + return; + for (i=1; i<=4; i++) { idx = (scripthistend-i)&(SCRIPTHISTSIZ-1);