From 99a61e74c71142d172182881feded716b64ec961 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 4 May 2017 00:37:43 +0200 Subject: [PATCH] - fixed: The first model ID was always initialized to 0, even if that model wasn't even present in the definition. --- src/gl/models/gl_models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/models/gl_models.cpp b/src/gl/models/gl_models.cpp index 768690bcc..8adee7cf0 100644 --- a/src/gl/models/gl_models.cpp +++ b/src/gl/models/gl_models.cpp @@ -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);