mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- Fixed bad NULL return value in AActor::StaticSpawn.
Fixes crash with PB.
This commit is contained in:
parent
4a8d216f94
commit
d5352fa550
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 ();
|
||||
if (actor->ObjectFlags & OF_EuthanizeMe)
|
||||
{
|
||||
return NULL;
|
||||
return actor;
|
||||
}
|
||||
}
|
||||
if (level.flags & LEVEL_NOALLIES && !actor->player)
|
||||
|
|
Loading…
Reference in a new issue