From 2434d85684032a86d80c2cb3e4ef23c63c5be6a3 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 1 Jul 2012 16:01:01 -0700 Subject: [PATCH] don't pass the same player-1 data for every player --- xwords4/android/XWords4/jni/drawwrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/jni/drawwrapper.c b/xwords4/android/XWords4/jni/drawwrapper.c index d5e6b51df..436bd17ce 100644 --- a/xwords4/android/XWords4/jni/drawwrapper.c +++ b/xwords4/android/XWords4/jni/drawwrapper.c @@ -121,7 +121,7 @@ makeJRects( AndDraw* draw, int indx, XP_U16 nPlayers, const XP_Rect rects[] ) } static jobject -makeDSIs( AndDraw* draw, int indx, XP_U16 nPlayers, const DrawScoreInfo dsi[] ) +makeDSIs( AndDraw* draw, int indx, XP_U16 nPlayers, const DrawScoreInfo dsis[] ) { XP_U16 ii; JNIEnv* env = *draw->env; @@ -146,6 +146,7 @@ makeDSIs( AndDraw* draw, int indx, XP_U16 nPlayers, const DrawScoreInfo dsi[] ) for ( ii = 0; ii < nPlayers; ++ii ) { jobject dsiobj = (*env)->GetObjectArrayElement( env, dsiobjs, ii ); + const DrawScoreInfo* dsi = &dsis[ii]; setInt( env, dsiobj, "playerNum", dsi->playerNum ); setInt( env, dsiobj, "totalScore", dsi->totalScore );