Fixed a regression in DoTakeInventory. (the C++ code just ignored the null pointer, but ZScript can't do that)

This commit is contained in:
Chronos Ouroboros 2019-12-30 12:33:30 -03:00
parent bd1892120d
commit b4ba7dfec2
1 changed files with 4 additions and 0 deletions

View File

@ -504,6 +504,10 @@ extend class Actor
{
return false;
}
if (receiver == NULL)
{
return false;
}
if (!orresult)
{
receiver = receiver.GetPointer(setreceiver);