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:
Boondorl 2025-08-29 15:14:39 -04:00 committed by Ricardo Luís Vaz Silva
commit 3d39bf33bb
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}