From bdb7594e60812155d89d6887ca426198bec98750 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 4 May 2016 14:25:58 +0200 Subject: [PATCH] - fixed: Incomplete model definitions flagged the actor as having a model, which could cause a crash. --- 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 22cc7479f..bcf1d4f6a 100644 --- a/src/gl/models/gl_models.cpp +++ b/src/gl/models/gl_models.cpp @@ -530,7 +530,6 @@ void gl_InitModels() { sc.ScriptError("MODELDEF: Unknown actor type '%s'\n", sc.String); } - GetDefaultByType(smf.type)->hasmodel=true; sc.MustGetStringName("{"); while (!sc.CheckString("}")) { @@ -744,6 +743,7 @@ void gl_InitModels() if (map[c]) continue; smf.frame=c; SpriteModelFrames.Push(smf); + GetDefaultByType(smf.type)->hasmodel = true; map[c]=1; } }