Skip to content

Commit

Permalink
Update models.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Chernoskill committed Mar 6, 2021
1 parent d1ea33a commit bb18bba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/r_data/models.cpp
Expand Up @@ -408,10 +408,10 @@ static void ParseModelDefLump(int Lump)
smf.modelsAmount = index + 1;
}
}
//Make sure modelsAmount is at least equal to MD3_MIN_MODELS(4) to ensure compatibility with old mods
if (smf.modelsAmount < MD3_MIN_MODELS)
//Make sure modelsAmount is at least equal to MIN_MODELS(4) to ensure compatibility with old mods
if (smf.modelsAmount < MIN_MODELS)
{
smf.modelsAmount = MD3_MIN_MODELS;
smf.modelsAmount = MIN_MODELS;
}
//Allocate TArrays
smf.modelIDs.Alloc(smf.modelsAmount);
Expand Down

0 comments on commit bb18bba

Please sign in to comment.