From 2996af17ceee788649c042d771c4e837496e109e Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 9 May 2012 18:20:51 -0700 Subject: [PATCH] fix crash when trade happens while --show-other is on --- xwords4/linux/gtkmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xwords4/linux/gtkmain.c b/xwords4/linux/gtkmain.c index 7d42faf73..70cc9d9ad 100644 --- a/xwords4/linux/gtkmain.c +++ b/xwords4/linux/gtkmain.c @@ -1419,10 +1419,10 @@ gtkShowFinalScores( const CommonGlobals* cGlobals ) } /* gtkShowFinalScores */ static void -gtk_util_informMove( XW_UtilCtxt* XP_UNUSED(uc), XWStreamCtxt* XP_UNUSED(expl), +gtk_util_informMove( XW_UtilCtxt* XP_UNUSED(uc), XWStreamCtxt* expl, XWStreamCtxt* words ) { - char* question = strFromStream( words/*expl*/ ); + char* question = strFromStream( !!words? words : expl ); (void)gtkask( question, GTK_BUTTONS_OK ); free( question ); }