diff --git a/src/menu/menu.cpp b/src/menu/menu.cpp index dcbd336f27..041b1195ee 100644 --- a/src/menu/menu.cpp +++ b/src/menu/menu.cpp @@ -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);