Allow scripted menu Drawer to write to CVars
This commit is contained in:
parent
3162b23e5d
commit
c08a47c920
1 changed files with 2 additions and 0 deletions
|
|
@ -406,7 +406,9 @@ void DMenu::CallDrawer()
|
|||
IFVIRTUAL(DMenu, Drawer)
|
||||
{
|
||||
VMValue params[] = { (DObject*)this };
|
||||
InMenu++;
|
||||
VMCall(func, params, 1, nullptr, 0);
|
||||
InMenu--;
|
||||
twod->ClearClipRect(); // make sure the scripts don't leave a valid clipping rect behind.
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue