mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
Update models.cpp
This commit is contained in:
parent
d1ea33a815
commit
bb18bbaff4
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue