mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +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;
|
AInventory *drop = nullptr;
|
||||||
IFVIRTUALPTR(item, AInventory, CreateTossable)
|
IFVIRTUALPTR(item, AInventory, CreateTossable)
|
||||||
{
|
{
|
||||||
VMValue params[1] = { (DObject*)this };
|
VMValue params[1] = { (DObject*)item };
|
||||||
VMReturn ret((void**)&drop);
|
VMReturn ret((void**)&drop);
|
||||||
GlobalVMStack.Call(func, params, 1, &ret, 1, nullptr);
|
GlobalVMStack.Call(func, params, 1, &ret, 1, nullptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue