diff --git a/src/ObjWriting/Game/IW4/ObjWriterIW4.cpp b/src/ObjWriting/Game/IW4/ObjWriterIW4.cpp index f0f42cfa..73d5b2d1 100644 --- a/src/ObjWriting/Game/IW4/ObjWriterIW4.cpp +++ b/src/ObjWriting/Game/IW4/ObjWriterIW4.cpp @@ -30,7 +30,7 @@ using namespace IW4; bool ObjWriter::DumpZone(AssetDumpingContext& context) const { -#define REGISTER_DUMPER(dumperType, poolName) \ +#define REGISTER_DUMPER(dumperType, poolName) \ if (assetPools->poolName && ObjWriting::ShouldHandleAssetType(dumperType::AssetType_t::EnumEntry)) \ { \ dumpers.emplace_back(std::make_unique(*assetPools->poolName)); \ diff --git a/src/ZoneLoading/Zone/Stream/ZoneInputStream.cpp b/src/ZoneLoading/Zone/Stream/ZoneInputStream.cpp index 5fb0586f..f6722962 100644 --- a/src/ZoneLoading/Zone/Stream/ZoneInputStream.cpp +++ b/src/ZoneLoading/Zone/Stream/ZoneInputStream.cpp @@ -60,6 +60,7 @@ namespace m_block_shift(pointerBitCount - blockBitCount), m_offset_mask(std::numeric_limits::max() >> (sizeof(uintptr_t) * 8 - (pointerBitCount - blockBitCount))), m_last_fill_size(0), + m_has_progress_callback(false), m_progress_current_size(0uz), m_progress_total_size(0uz) {