mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-19 15:10:52 +00:00
Revert "- Fixed bad NULL return value in AActor::StaticSpawn."
This reverts commit d5352fa550
.
In master AActor::StaticSpawn now can't return NULL but there are still some null pointer checks.
This commit is contained in:
parent
d5352fa550
commit
d200c171ca
1 changed files with 1 additions and 1 deletions
|
@ -4562,7 +4562,7 @@ AActor *AActor::StaticSpawn (PClassActor *type, const DVector3 &pos, replace_t a
|
||||||
actor->CallBeginPlay ();
|
actor->CallBeginPlay ();
|
||||||
if (actor->ObjectFlags & OF_EuthanizeMe)
|
if (actor->ObjectFlags & OF_EuthanizeMe)
|
||||||
{
|
{
|
||||||
return actor;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (level.flags & LEVEL_NOALLIES && !actor->player)
|
if (level.flags & LEVEL_NOALLIES && !actor->player)
|
||||||
|
|
Loading…
Reference in a new issue