SDL: Fix crash when not in debugger mode

This commit is contained in:
Vicki Pfau 2017-07-15 07:13:28 -07:00
parent 531d4c7bae
commit 5d0ab48457
1 changed files with 3 additions and 3 deletions

View File

@ -184,10 +184,10 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) {
#endif #endif
mDebuggerAttach(debugger, renderer->core); mDebuggerAttach(debugger, renderer->core);
mDebuggerEnter(debugger, DEBUGGER_ENTER_MANUAL, NULL); mDebuggerEnter(debugger, DEBUGGER_ENTER_MANUAL, NULL);
} #ifdef ENABLE_SCRIPTING
#ifdef ENABLE_SCRIPTING mScriptBridgeSetDebugger(bridge, debugger);
mScriptBridgeSetDebugger(bridge, debugger);
#endif #endif
}
#endif #endif
if (args->patch) { if (args->patch) {