From f1b14c6d31b1f7eafe4720302460c6265fb87025 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 21 Jun 2014 18:45:28 +0200 Subject: CGE2: Reduce the scope of some variables --- engines/cge2/vmenu.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'engines/cge2') 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) -- cgit v1.2.3