1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Fix crash on Android OS shutdown request

This commit is contained in:
Ivan Savenko 2024-06-17 13:23:44 +00:00
parent cd12b0e514
commit 6b9d2809b1

View File

@ -738,6 +738,13 @@ extern "C" JNIEXPORT jboolean JNICALL Java_eu_vcmi_vcmi_NativeMethods_tryToSaveT
logGlobal->info("Received emergency save game request");
if(!LOCPLINT || !LOCPLINT->cb)
{
logGlobal->info("... but no active player interface found!");
return false;
}
if (!CSH || !CSH->logicConnection)
{
logGlobal->info("... but no active connection found!");
return false;
}