Fixed undefined behavior of DropInventory()

See https://mantis.zdoom.org/view.php?id=93
This commit is contained in:
alexey.lysiuk 2017-01-21 11:40:22 +02:00
parent df1a90fb1b
commit 5158b1c337

View file

@ -1041,7 +1041,7 @@ AInventory *AActor::DropInventory (AInventory *item)
AInventory *drop = nullptr;
IFVIRTUALPTR(item, AInventory, CreateTossable)
{
VMValue params[1] = { (DObject*)this };
VMValue params[1] = { (DObject*)item };
VMReturn ret((void**)&drop);
GlobalVMStack.Call(func, params, 1, &ret, 1, nullptr);
}