]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Oops, better add braces there to avoid possible spurious warning if
authorRudolf Polzer <divverent@xonotic.org>
Sat, 17 May 2014 09:00:44 +0000 (11:00 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sat, 17 May 2014 09:00:44 +0000 (11:00 +0200)
someone adds an else.

qcsrc/menu/xonotic/util.qc

index ff50c902da1a40082d34dab0fa4015aec4369190..74b60d30aef98a01243a99b34117b8a19e00ae37 100644 (file)
@@ -667,7 +667,7 @@ float GameType_GetID(float cnt)
        float i;
        i = 0;
 
-       #define GAMETYPE(id) if(i++ == cnt) return id;
+       #define GAMETYPE(id) { if(i++ == cnt) return id; }
        GAMETYPES
        #undef GAMETYPE