- 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

View file

@ -521,7 +521,7 @@ void gl_InitModels()
path = "";
sc.MustGetString();
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.type = PClass::FindClass(sc.String);