From b8772dd066601db4031d59d62908acaae885291b Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Tue, 28 Apr 2009 18:52:27 +0000 Subject: [PATCH] Singleplayer crashfix. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7226 4a71c877-e1ca-e34f-864e-861f7616d084 --- src/multijoin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/multijoin.c b/src/multijoin.c index 83531c8cf..07bb14f27 100644 --- a/src/multijoin.c +++ b/src/multijoin.c @@ -98,6 +98,10 @@ BOOL intDisplayMultiJoiningStatus(UBYTE joinCount) iV_DrawText(_("Players Still Joining"), x+(w/2)-(iV_GetTextWidth(_("Players Still Joining"))/2), y+(h/2)-8 ); + if (!NetPlay.playercount) + { + return true; + } sprintf(sTmp,"%d%%", PERCENT((NetPlay.playercount-joinCount),NetPlay.playercount) ); iV_DrawText(sTmp ,x + (w / 2) - 10, y + (h / 2) + 10);