From 16e3ef924681de7a7d22d8aa18945ded43ae21e3 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 24 Mar 2015 07:33:24 -0700 Subject: [PATCH] assert I've got the plurals vs singular strings right --- xwords4/android/XWords4/jni/utilwrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xwords4/android/XWords4/jni/utilwrapper.c b/xwords4/android/XWords4/jni/utilwrapper.c index 3460082f4..bbe03769b 100644 --- a/xwords4/android/XWords4/jni/utilwrapper.c +++ b/xwords4/android/XWords4/jni/utilwrapper.c @@ -410,6 +410,8 @@ and_util_getUserString( XW_UtilCtxt* uc, XP_U16 stringCode ) int index = stringCode - 1; /* see LocalizedStrIncludes.h */ XP_ASSERT( index < VSIZE( util->userStrings ) ); + XP_ASSERT( 0 == (util->userStringsBits & (1 << index)) ); + if ( ! util->userStrings[index] ) { jstring jresult = (*env)->CallObjectMethod( env, util->jutil, mid, stringCode );