- fixed: Incomplete model definitions flagged the actor as having a model, which could cause a crash.

This commit is contained in:
Christoph Oelckers 2016-05-04 14:25:58 +02:00
parent 5f095082c0
commit bdb7594e60
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}