mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
Fixed crash in decals handling caused by reference to undefined class
https://forum.drdteam.org/viewtopic.php?t=7589
This commit is contained in:
parent
59ae50aecb
commit
893607c96c
1 changed files with 6 additions and 0 deletions
|
@ -370,6 +370,12 @@ void FDecalLib::ReadAllDecals ()
|
|||
for (i = 0; i < PClassActor::AllActorClasses.Size(); i++)
|
||||
{
|
||||
AActor *def = (AActor*)GetDefaultByType (PClassActor::AllActorClasses[i]);
|
||||
if (nullptr == def)
|
||||
{
|
||||
// This is referenced but undefined class
|
||||
// The corresponding warning should be already reported by DECORATE parser
|
||||
continue;
|
||||
}
|
||||
|
||||
FName v = ENamedName(intptr_t(def->DecalGenerator));
|
||||
if (v.IsValidName())
|
||||
|
|
Loading…
Reference in a new issue