diff --git a/Source/build.cpp b/Source/build.cpp index 902642c8..08373b70 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -27,6 +27,10 @@ CEXEBuild::~CEXEBuild() CEXEBuild::CEXEBuild() { + linecnt = 0; + fp = 0; + curfilename = 0; + display_info=1; display_script=1; display_errors=1; diff --git a/Source/script.cpp b/Source/script.cpp index d3fbedb8..3d562562 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -37,6 +37,10 @@ int CEXEBuild::process_script(FILE *filepointer, char *filename) return PS_ERROR; } int ret=parseScript(); + + fp = 0; + curfilename = 0; + if (ret == PS_ENDIF) ERROR_MSG("!endif: stray !endif\n"); if (IS_PS_ELSE(ret)) ERROR_MSG("!else: stray !else\n"); if (m_linebuild.getlen())