shouldn't be this way

This commit is contained in:
Silent 2017-04-02 18:58:32 +02:00
parent 7d13fbc441
commit 55fef20267

View file

@ -84,7 +84,7 @@ void CCustomCarPlateMgr::PollPlates( RpClump* clump, RpMaterial** materials )
if ( _strnicmp( texName, "carplate", 8 ) == 0 ) if ( _strnicmp( texName, "carplate", 8 ) == 0 )
{ {
assert(numCarplates < NUM_MAX_PLATES); assert(numCarplates < NUM_MAX_PLATES);
if ( numCarplates < NUM_MAX_PLATES ); if ( numCarplates < NUM_MAX_PLATES )
{ {
carplates[numCarplates++] = material; carplates[numCarplates++] = material;
} }
@ -92,7 +92,7 @@ void CCustomCarPlateMgr::PollPlates( RpClump* clump, RpMaterial** materials )
else if ( _strnicmp( texName, "carpback", 8 ) == 0 ) else if ( _strnicmp( texName, "carpback", 8 ) == 0 )
{ {
assert(numCarpbacks < NUM_MAX_PLATES); assert(numCarpbacks < NUM_MAX_PLATES);
if ( numCarpbacks < NUM_MAX_PLATES ); if ( numCarpbacks < NUM_MAX_PLATES )
{ {
carpbacks[numCarpbacks++] = material; carpbacks[numCarpbacks++] = material;
} }