From 4971e7def1462461579ae30750c679365536e564 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 6 Apr 2015 21:40:14 +0200 Subject: [PATCH] - another GCC countof fix... --- src/resourcefiles/resourcefile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resourcefiles/resourcefile.cpp b/src/resourcefiles/resourcefile.cpp index e5c12b0ef..11d60795e 100644 --- a/src/resourcefiles/resourcefile.cpp +++ b/src/resourcefiles/resourcefile.cpp @@ -430,13 +430,14 @@ int FResourceFile::FilterLumpsByGameType(int type, void *lumps, size_t lumpsize, { GAME_Raven, "game-Raven" }, { GAME_DoomStrifeChex, "game-DoomStrifeChex" }, { GAME_DoomChex, "game-DoomChex" }, + { GAME_Any, NULL } }; if (type == 0) { return 0; } int count = 0; - for (int i = 0; i < countof(blanket); ++i) + for (int i = 0; blanket[i].name != NULL; ++i) { if (type & blanket[i].match) {