From 3d335488e6f73c2837fca9e128e8199df616427a Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 17 May 2014 11:00:44 +0200 Subject: [PATCH] Oops, better add braces there to avoid possible spurious warning if someone adds an else. --- qcsrc/menu/xonotic/util.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index ff50c902d..74b60d30a 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -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 -- 2.39.2