aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-06-21 18:45:28 +0200
committerStrangerke2014-06-21 18:45:28 +0200
commitf1b14c6d31b1f7eafe4720302460c6265fb87025 (patch)
treedd08e50cf056a78ee0adaacdf3b84d0b0cbbb480
parent7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc (diff)
downloadscummvm-rg350-f1b14c6d31b1f7eafe4720302460c6265fb87025.tar.gz
scummvm-rg350-f1b14c6d31b1f7eafe4720302460c6265fb87025.tar.bz2
scummvm-rg350-f1b14c6d31b1f7eafe4720302460c6265fb87025.zip
CGE2: Reduce the scope of some variables
-rw-r--r--engines/cge2/vmenu.cpp7
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)