- Fixed bad NULL return value in AActor::StaticSpawn.

Fixes crash with PB.
This commit is contained in:
drfrag 2019-10-07 11:50:42 +02:00
parent 4a8d216f94
commit d5352fa550

View file

@ -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)