mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
Fixed a regression in DoTakeInventory. (the C++ code just ignored the null pointer, but ZScript can't do that)
This commit is contained in:
parent
bd1892120d
commit
b4ba7dfec2
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue