[commit] r2795 - trunk/GME/Console
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Mon Apr 5 11:25:54 CDT 2021
Author: ksmyth
Date: Mon Apr 5 11:25:54 2021
New Revision: 2795
Log:
Fix console scripting crash when creating an engine fails, then switching to Javascript
Modified:
trunk/GME/Console/ScriptHost.cpp
Modified: trunk/GME/Console/ScriptHost.cpp
==============================================================================
--- trunk/GME/Console/ScriptHost.cpp Mon Apr 5 11:25:51 2021 (r2794)
+++ trunk/GME/Console/ScriptHost.cpp Mon Apr 5 11:25:54 2021 (r2795)
@@ -47,7 +47,10 @@
}
COMTHROW(m_iscript->SetScriptState(SCRIPTSTATE_CONNECTED));
}
- COMCATCH(;)
+ COMCATCH(
+ // initialization failed; be sure to retry next time
+ m_enginePID.Assign(nullptr);
+ )
return S_OK;
}
More information about the gme-commit
mailing list