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
master
Buginator 2009-04-11 04:43:56 +00:00 committed by Git SVN Gateway
parent 7a6fa22b1e
commit 96bdc06fdd
1 changed files with 2 additions and 1 deletions

View File

@ -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);