scoreboard crash-fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3840 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2008-12-03 01:20:11 +00:00
parent 58b156425e
commit b405395390
+6 -2
View File
@@ -217,8 +217,12 @@ void consolescores()
{
serverinfo *s = getconnectedserverinfo();
string text;
filtertext(text, s->sdesc, 1);
if(s) printf(", %s:%d %s", s->name, s->port, text);
if(s)
{
filtertext(text, s->sdesc, 1);
printf(", %s:%d %s", s->name, s->port, text);
}
}
printf("\n%sfrags deaths ratio cn%s name\n", m_flags ? "flags " : "", m_teammode ? " team" : "");
loopv(scores)