mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fixed undefined behavior of DropInventory()
See https://mantis.zdoom.org/view.php?id=93
This commit is contained in:
parent
df1a90fb1b
commit
5158b1c337
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue