mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 14:01:45 +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,13 +37,16 @@ class SectorAction : Actor
|
|||
else
|
||||
{
|
||||
Actor probe = CurSector.SecActTarget;
|
||||
while (probe.tracer != self && probe.tracer != null)
|
||||
if (null != probe)
|
||||
{
|
||||
probe = probe.tracer;
|
||||
}
|
||||
if (probe.tracer == self)
|
||||
{
|
||||
probe.tracer = tracer;
|
||||
while (probe.tracer != self && probe.tracer != null)
|
||||
{
|
||||
probe = probe.tracer;
|
||||
}
|
||||
if (probe.tracer == self)
|
||||
{
|
||||
probe.tracer = tracer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue