From 462148a4b05e8f6fb841a7eade07da25ff0aab8d Mon Sep 17 00:00:00 2001 From: rackover Date: Wed, 28 Apr 2021 20:23:56 +0200 Subject: [PATCH] Fixed signed/unsigned masquerade --- src/Components/Modules/QuickPatch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/QuickPatch.cpp b/src/Components/Modules/QuickPatch.cpp index 7c8640b0..4b0e78b3 100644 --- a/src/Components/Modules/QuickPatch.cpp +++ b/src/Components/Modules/QuickPatch.cpp @@ -1000,7 +1000,7 @@ namespace Components for (auto i = 0; i < scene->sceneDObjCount; i++) { if (scene->sceneDObj[i].obj) { - for (size_t j = 0; j < scene->sceneDObj[i].obj->numModels; j++) + for (int j = 0; j < scene->sceneDObj[i].obj->numModels; j++) { Game::R_AddDebugString(dobjsColor, scene->sceneDObj[i].placement.origin, 1.0, scene->sceneDObj[i].obj->models[j]->name); } @@ -1008,7 +1008,7 @@ namespace Components } // Static models - for (auto i = 0; i < world->dpvs.smodelCount; i++) + for (size_t i = 0; i < world->dpvs.smodelCount; i++) { auto staticModel = world->dpvs.smodelDrawInsts[i]; if (staticModel.model) {