- fixed bad parameters for MouseEvent call in menus.

This commit is contained in:
Christoph Oelckers 2017-02-13 20:06:07 +01:00
parent ad178e16c5
commit 5dd00e44ef

View file

@ -1457,7 +1457,7 @@ bool DMenuItemBase::MouseEvent(int type, int x, int y)
{ {
IFVIRTUAL(DMenuItemBase, MouseEvent) IFVIRTUAL(DMenuItemBase, MouseEvent)
{ {
VMValue params[] = { (DObject*)this, x, y }; VMValue params[] = { (DObject*)this, type, x, y };
int retval; int retval;
VMReturn ret(&retval); VMReturn ret(&retval);
GlobalVMStack.Call(func, params, countof(params), &ret, 1, nullptr); GlobalVMStack.Call(func, params, countof(params), &ret, 1, nullptr);