[client] overlay: fix race on startup that caused a segfault

Fixes #1065
This commit is contained in:
Geoffrey McRae
2023-03-30 14:58:19 +11:00
parent 0ee5751b3a
commit 996e1b2f7a
2 changed files with 16 additions and 4 deletions

View File

@@ -656,8 +656,6 @@ MsgBoxHandle app_msgBox(const char * caption, const char * fmt, ...)
MsgBoxHandle handle = overlayMsg_show(caption, NULL, NULL, fmt, args);
va_end(args);
core_updateOverlayState();
return handle;
}
@@ -669,8 +667,6 @@ MsgBoxHandle app_confirmMsgBox(const char * caption,
MsgBoxHandle handle = overlayMsg_show(caption, callback, opaque, fmt, args);
va_end(args);
core_updateOverlayState();
return handle;
}