From 5b3f1f541e9a2225632d0cf1de2be88c5665fdcd Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 19 Feb 2019 00:51:00 +0100 Subject: [PATCH] Add brackets to GAMETYPE macros --- qcsrc/menu/xonotic/util.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/menu/xonotic/util.qc b/qcsrc/menu/xonotic/util.qc index 734056412..57d084e4a 100644 --- a/qcsrc/menu/xonotic/util.qc +++ b/qcsrc/menu/xonotic/util.qc @@ -702,7 +702,7 @@ float updateCompression() Gametype GameType_GetID(int cnt) { int i = 0; - #define GAMETYPE(it) if (i++ == cnt) return it; + #define GAMETYPE(it) { if (i++ == cnt) return it; } GAMETYPES HIDDEN_GAMETYPES #undef GAMETYPE @@ -716,7 +716,7 @@ int GameType_GetCount() #define GAMETYPE(id) ++i; GAMETYPES #undef GAMETYPE - #define GAMETYPE(it) if (dev) ++i; + #define GAMETYPE(it) { if (dev) ++i; } HIDDEN_GAMETYPES #undef GAMETYPE return i; -- 2.39.2