From b7a22973e68c5dfa8439f51ae3841fa4517e7bd3 Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Sun, 3 May 2026 13:05:00 +0200 Subject: [PATCH] chore: make sure xmodel flags are unsigned --- src/Common/Game/IW3/IW3_Assets.h | 2 +- src/Common/Game/IW4/IW4_Assets.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/Game/IW3/IW3_Assets.h b/src/Common/Game/IW3/IW3_Assets.h index a1c2448b..0d4062e9 100644 --- a/src/Common/Game/IW3/IW3_Assets.h +++ b/src/Common/Game/IW3/IW3_Assets.h @@ -530,7 +530,7 @@ namespace IW3 int16_t collLod; XModelStreamInfo streamInfo; int memUsage; - char flags; + unsigned char flags; bool bad; PhysPreset* physPreset; PhysGeomList* physGeoms; diff --git a/src/Common/Game/IW4/IW4_Assets.h b/src/Common/Game/IW4/IW4_Assets.h index f24b869f..40aa6a87 100644 --- a/src/Common/Game/IW4/IW4_Assets.h +++ b/src/Common/Game/IW4/IW4_Assets.h @@ -586,7 +586,7 @@ namespace IW4 char maxLoadedLod; unsigned char numLods; char collLod; - char flags; + unsigned char flags; XModelCollSurf_s* collSurfs; int numCollSurfs; int contents;