mGUI: Fix crash when runner->running is null

This commit is contained in:
Vicki Pfau 2020-08-09 18:26:18 -07:00
parent 3b784485f8
commit 5fd48c25dc
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,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) {