From fd615713d532c3f571fd95144bd493d41e3e0486 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 24 Feb 2017 11:09:25 +0200 Subject: [PATCH] Fixed handling of default values for Menu.SetMenu() and Menu.StartMessage() arguments --- src/menu/menu.cpp | 2 +- src/menu/messagebox.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/menu.cpp b/src/menu/menu.cpp index e4920ef55..71c0ff645 100644 --- a/src/menu/menu.cpp +++ b/src/menu/menu.cpp @@ -496,7 +496,7 @@ DEFINE_ACTION_FUNCTION(DMenu, SetMenu) { PARAM_PROLOGUE; PARAM_NAME(menu); - PARAM_INT(mparam); + PARAM_INT_DEF(mparam); M_SetMenu(menu, mparam); return 0; } diff --git a/src/menu/messagebox.cpp b/src/menu/messagebox.cpp index b3b0e1fe7..a1a0fda76 100644 --- a/src/menu/messagebox.cpp +++ b/src/menu/messagebox.cpp @@ -267,7 +267,7 @@ DEFINE_ACTION_FUNCTION(DMenu, StartMessage) { PARAM_PROLOGUE; PARAM_STRING(msg); - PARAM_INT(mode); + PARAM_INT_DEF(mode); PARAM_NAME_DEF(action); M_StartMessage(msg, mode, action); return 0;