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

View file

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