mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- fixed: Incomplete model definitions flagged the actor as having a model, which could cause a crash.
This commit is contained in:
parent
5f095082c0
commit
bdb7594e60
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue