mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
Added null check for probe in SectorAction.OnDestroy()
Absence of check led to unhandled VM abort exception in case of saved game failed to load
This commit is contained in:
parent
a89bc23789
commit
acc943329b
1 changed files with 9 additions and 6 deletions
|
@ -37,6 +37,8 @@ class SectorAction : Actor
|
|||
else
|
||||
{
|
||||
Actor probe = CurSector.SecActTarget;
|
||||
if (null != probe)
|
||||
{
|
||||
while (probe.tracer != self && probe.tracer != null)
|
||||
{
|
||||
probe = probe.tracer;
|
||||
|
@ -47,6 +49,7 @@ class SectorAction : Actor
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Super.OnDestroy();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue