- fixed the item check in OptionMenuItemCommand.

This was calling the wrong GetItem function.
This commit is contained in:
Christoph Oelckers 2017-02-14 16:50:10 +01:00
commit 7b1645d239
3 changed files with 9 additions and 3 deletions

View file

@ -448,6 +448,12 @@ DEFINE_ACTION_FUNCTION(DMenu, GetItem)
ACTION_RETURN_OBJECT(self->GetItem(name));
}
DEFINE_ACTION_FUNCTION(DOptionMenuDescriptor, GetItem)
{
PARAM_SELF_PROLOGUE(DOptionMenuDescriptor);
PARAM_NAME(name);
ACTION_RETURN_OBJECT(self->GetItem(name));
}
bool DMenu::DimAllowed()