Prevent crashes in exception handler during pre-init phase

Fixes one bug of #221
This commit is contained in:
Maurice Heumann 2021-06-12 19:59:48 +02:00
parent b6aa23fc37
commit 1ff9cae0e7

View File

@ -71,10 +71,10 @@ namespace exception
bool is_recoverable()
{
return is_game_thread()
return is_initialized()
&& is_game_thread()
&& !is_exception_interval_too_short()
&& !too_many_exceptions_occured()
&& is_initialized();
&& !too_many_exceptions_occured();
}
void show_mouse_cursor()