- fixed: The first model ID was always initialized to 0, even if that model wasn't even present in the definition.

This commit is contained in:
Christoph Oelckers 2017-05-04 00:37:43 +02:00
parent 0877539315
commit 99a61e74c7
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ void gl_InitModels()
path = ""; path = "";
sc.MustGetString(); sc.MustGetString();
memset(&smf, 0, sizeof(smf)); memset(&smf, 0, sizeof(smf));
smf.modelIDs[1] = smf.modelIDs[2] = smf.modelIDs[3] = -1; smf.modelIDs[0] = smf.modelIDs[1] = smf.modelIDs[2] = smf.modelIDs[3] = -1;
smf.xscale=smf.yscale=smf.zscale=1.f; smf.xscale=smf.yscale=smf.zscale=1.f;
smf.type = PClass::FindClass(sc.String); smf.type = PClass::FindClass(sc.String);