From 96bdc06fdd4cbb982c8d6c1e7c17dfbafed71fcc Mon Sep 17 00:00:00 2001 From: Buginator Date: Sat, 11 Apr 2009 04:43:56 +0000 Subject: [PATCH] Fix a C99 issue that prevented compiles on MSVC. Broken in r6998 git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7015 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/multiint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/multiint.c b/src/multiint.c index 7168ab09d..37df8776a 100644 --- a/src/multiint.c +++ b/src/multiint.c @@ -649,6 +649,8 @@ static void addGames(void) // display that no games are available in lobby. // This is a 'button', not text so it can be hilighted/centered. const char *txt; + W_BUTINIT sButInit; + switch (getConnError()) { case NETERR_NOERR: @@ -661,7 +663,6 @@ static void addGames(void) txt = _("Unknown Error"); break; } - W_BUTINIT sButInit; // delete old widget if necessary widgDelete(psWScreen,FRONTEND_NOGAMESAVAILABLE);