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:
parent
cd12b0e514
commit
6b9d2809b1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user