From 728bbd6327d499c442a24fb01af3cf8275da9840 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Dec 2023 20:33:41 +0100 Subject: [PATCH] fix some stuff --- src/CMakeLists.txt | 1 + src/common/filesystem/source/resourcefile.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index da19a75bd..29737154f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1227,6 +1227,7 @@ set( GAME_SOURCES common/filesystem/source/fs_findfile.cpp common/filesystem/source/fs_stringpool.cpp common/filesystem/source/unicode.cpp + common/filesystem/source/critsec.cpp ) diff --git a/src/common/filesystem/source/resourcefile.cpp b/src/common/filesystem/source/resourcefile.cpp index 81d307000..b592d2bfa 100644 --- a/src/common/filesystem/source/resourcefile.cpp +++ b/src/common/filesystem/source/resourcefile.cpp @@ -709,7 +709,7 @@ FileReader FUncompressedFile::GetEntryReader(uint32_t entry, bool newreader) FileReader fr; if (entry < NumLumps) { - if (!Entries[entry].Flags & RESFF_COMPRESSED) + if (!(Entries[entry].Flags & RESFF_COMPRESSED)) { if (!newreader) {