diff options
Diffstat (limited to 'engines/cge2')
-rw-r--r-- | engines/cge2/vmenu.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/cge2/vmenu.cpp b/engines/cge2/vmenu.cpp index a2f2f05389..fa4c29c1d7 100644 --- a/engines/cge2/vmenu.cpp +++ b/engines/cge2/vmenu.cpp @@ -122,13 +122,12 @@ VMenu::~VMenu() { } void VMenu::touch(uint16 mask, V2D pos, Common::KeyCode keyCode) { - int h = kFontHigh + kTextLineSpace; - int n = 0; - bool ok = false; - if (_items) { Sprite::touch(mask, pos, keyCode); + int n = 0; + bool ok = false; + int h = kFontHigh + kTextLineSpace; pos.y -= kTextVMargin - 1; if (pos.y >= 0) { if (pos.x < 0) |