diff --git a/src/common/menu/menu.cpp b/src/common/menu/menu.cpp index 26ad084c8..ee9a1277e 100644 --- a/src/common/menu/menu.cpp +++ b/src/common/menu/menu.cpp @@ -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. } }