mGUI: Fix crash when runner->running is null

This commit is contained in:
Vicki Pfau 2020-08-09 18:26:18 -07:00
parent 75865cab94
commit 83397d5618
1 changed files with 1 additions and 1 deletions

View File

@ -651,7 +651,7 @@ void mGUIRunloop(struct mGUIRunner* runner) {
mInputMapLoad(&runner->params.keyMap, runner->keySources[i].id, mCoreConfigGetInput(&runner->config));
}
}
while (runner->running(runner)) {
while (!runner->running || runner->running(runner)) {
char path[PATH_MAX];
const char* preselect = mCoreConfigGetValue(&runner->config, "lastGame");
if (preselect) {