From 5e028281de8a601d950e69aac241503e4ad40c91 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 17 Jan 2022 16:29:13 -0800 Subject: [PATCH] fix mis-reporting number of tiles traded --- xwords4/common/server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xwords4/common/server.c b/xwords4/common/server.c index 8eaeacf6f..32673139b 100644 --- a/xwords4/common/server.c +++ b/xwords4/common/server.c @@ -1479,9 +1479,10 @@ makeRobotMove( ServerCtxt* server, XWEnv xwe ) if ( !!stream ) { XP_UCHAR buf[64]; + XP_U16 nTrayTiles = gi->traySize; str = dutil_getUserQuantityString( dutil, xwe, STRD_ROBOT_TRADED, - MAX_TRAY_TILES ); - XP_SNPRINTF( buf, sizeof(buf), str, MAX_TRAY_TILES ); + nTrayTiles ); + XP_SNPRINTF( buf, sizeof(buf), str, nTrayTiles ); stream_catString( stream, buf ); XP_ASSERT( !server->nv.prevMoveStream );