mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 10:11:11 +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;
|
smf.modelsAmount = index + 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Make sure modelsAmount is at least equal to MD3_MIN_MODELS(4) to ensure compatibility with old mods
|
//Make sure modelsAmount is at least equal to MIN_MODELS(4) to ensure compatibility with old mods
|
||||||
if (smf.modelsAmount < MD3_MIN_MODELS)
|
if (smf.modelsAmount < MIN_MODELS)
|
||||||
{
|
{
|
||||||
smf.modelsAmount = MD3_MIN_MODELS;
|
smf.modelsAmount = MIN_MODELS;
|
||||||
}
|
}
|
||||||
//Allocate TArrays
|
//Allocate TArrays
|
||||||
smf.modelIDs.Alloc(smf.modelsAmount);
|
smf.modelIDs.Alloc(smf.modelsAmount);
|
||||||
|
|
Loading…
Reference in a new issue