Re-add handler param to MessageBox Init virtual
This is just to prevent breaking any existing overrides. The value is fully unused.
This commit is contained in:
parent
ca74b49dc8
commit
3d39bf33bb
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ DMenu *CreateMessageBoxMenu(DMenu *parent, const char *message, int messagemode,
|
|||
IFVIRTUALPTRNAME(p, NAME_MessageBoxMenu, Init)
|
||||
{
|
||||
p->PointerVar<void>(NAME_Handler) = reinterpret_cast<void*>(handler);
|
||||
VMValue params[] = { p, parent, &namestr, messagemode, playsound, action.GetIndex() };
|
||||
VMValue params[] = { p, parent, &namestr, messagemode, playsound, action.GetIndex(), (void*)nullptr };
|
||||
VMCall(func, params, countof(params), nullptr, 0);
|
||||
return (DMenu*)p;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ class MessageBoxMenu : Menu
|
|||
//
|
||||
//=============================================================================
|
||||
|
||||
virtual void Init(Menu parent, String message, int messagemode, bool playsound = false, Name cmd = 'None')
|
||||
virtual void Init(Menu parent, String message, int messagemode, bool playsound = false, Name cmd = 'None', voidptr native_handler = null)
|
||||
{
|
||||
Super.Init(parent);
|
||||
mAction = cmd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue