mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 09:11:17 +00:00
- another GCC countof fix...
This commit is contained in:
parent
7d2ab461d9
commit
4971e7def1
1 changed files with 2 additions and 1 deletions
|
@ -430,13 +430,14 @@ int FResourceFile::FilterLumpsByGameType(int type, void *lumps, size_t lumpsize,
|
||||||
{ GAME_Raven, "game-Raven" },
|
{ GAME_Raven, "game-Raven" },
|
||||||
{ GAME_DoomStrifeChex, "game-DoomStrifeChex" },
|
{ GAME_DoomStrifeChex, "game-DoomStrifeChex" },
|
||||||
{ GAME_DoomChex, "game-DoomChex" },
|
{ GAME_DoomChex, "game-DoomChex" },
|
||||||
|
{ GAME_Any, NULL }
|
||||||
};
|
};
|
||||||
if (type == 0)
|
if (type == 0)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int count = 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)
|
if (type & blanket[i].match)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue