From 55fef202677d96f78c0b2737e7d44025736d4de6 Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 2 Apr 2017 18:58:32 +0200 Subject: [PATCH] shouldn't be this way --- SilentPatchSA/ModelInfoSA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SilentPatchSA/ModelInfoSA.cpp b/SilentPatchSA/ModelInfoSA.cpp index 36ef591..c799b40 100644 --- a/SilentPatchSA/ModelInfoSA.cpp +++ b/SilentPatchSA/ModelInfoSA.cpp @@ -84,7 +84,7 @@ void CCustomCarPlateMgr::PollPlates( RpClump* clump, RpMaterial** materials ) if ( _strnicmp( texName, "carplate", 8 ) == 0 ) { assert(numCarplates < NUM_MAX_PLATES); - if ( numCarplates < NUM_MAX_PLATES ); + if ( numCarplates < NUM_MAX_PLATES ) { carplates[numCarplates++] = material; } @@ -92,7 +92,7 @@ void CCustomCarPlateMgr::PollPlates( RpClump* clump, RpMaterial** materials ) else if ( _strnicmp( texName, "carpback", 8 ) == 0 ) { assert(numCarpbacks < NUM_MAX_PLATES); - if ( numCarpbacks < NUM_MAX_PLATES ); + if ( numCarpbacks < NUM_MAX_PLATES ) { carpbacks[numCarpbacks++] = material; }