mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix jni crash on Nexus 9: give boolean default value
Crash occurs when creating new game: because there's no turn set yet the jboolean has no set value (whatever was on the stack). Apparently the java runtime accepts only 1 and 0 for jbooleans.
This commit is contained in:
parent
c3c2795f67
commit
45a6ddf8ec
1 changed files with 1 additions and 1 deletions
|
@ -1661,7 +1661,7 @@ Java_org_eehouse_android_xw4_jni_XwJNI_game_1summarize
|
|||
setInt( env, jsummary, "nMoves", nMoves );
|
||||
XP_Bool gameOver = server_getGameIsOver( state->game.server );
|
||||
setBool( env, jsummary, "gameOver", gameOver );
|
||||
XP_Bool isLocal;
|
||||
XP_Bool isLocal = XP_FALSE;
|
||||
setInt( env, jsummary, "turn",
|
||||
server_getCurrentTurn( state->game.server, &isLocal ) );
|
||||
setBool( env, jsummary, "turnIsLocal", isLocal );
|
||||
|
|
Loading…
Reference in a new issue