- 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)
{
VMValue params[] = { (DObject*)this, x, y };
VMValue params[] = { (DObject*)this, type, x, y };
int retval;
VMReturn ret(&retval);
GlobalVMStack.Call(func, params, countof(params), &ret, 1, nullptr);