mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-06 05:24:46 +01:00
don't pass the same player-1 data for every player
This commit is contained in:
parent
5cd8ab2b33
commit
2434d85684
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue