mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 21:41:03 +00:00
Fix crash with DecoupledModels flag defined but no actual model
This commit is contained in:
parent
520b960ca5
commit
0092aa0772
1 changed files with 1 additions and 1 deletions
|
@ -1124,7 +1124,7 @@ FSpriteModelFrame * FindModelFrame(const AActor * thing, int sprite, int frame,
|
||||||
|
|
||||||
if(thing->flags9 & MF9_DECOUPLEDANIMATIONS)
|
if(thing->flags9 & MF9_DECOUPLEDANIMATIONS)
|
||||||
{
|
{
|
||||||
return &BaseSpriteModelFrames[(thing->modelData != nullptr && thing->modelData->modelDef != nullptr) ? thing->modelData->modelDef : thing->GetClass()];
|
return BaseSpriteModelFrames.CheckKey((thing->modelData != nullptr && thing->modelData->modelDef != nullptr) ? thing->modelData->modelDef : thing->GetClass());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue