aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-29 23:52:58 +0000
committerJohannes Schickel2010-01-29 23:52:58 +0000
commit8e69a2478381b5b0f000de04e5d9f9cdf2cb34d4 (patch)
treeb4ded4743e00b536f8dbd5abf4e754a6ee64f560 /engines
parent8977c1a4aa64b3ce8f527969c01c9e8bd695fd9e (diff)
downloadscummvm-rg350-8e69a2478381b5b0f000de04e5d9f9cdf2cb34d4.tar.gz
scummvm-rg350-8e69a2478381b5b0f000de04e5d9f9cdf2cb34d4.tar.bz2
scummvm-rg350-8e69a2478381b5b0f000de04e5d9f9cdf2cb34d4.zip
Fix yet another use of possibly undefined behavior reported by syke.
svn-id: r47689
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/gui_lol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/gui_lol.cpp b/engines/kyra/gui_lol.cpp
index 0f13738662..3c7a13219a 100644
--- a/engines/kyra/gui_lol.cpp
+++ b/engines/kyra/gui_lol.cpp
@@ -2810,7 +2810,7 @@ int GUI_LoL::clickedOptionsMenu(Button *button) {
_vm->_floatingCursorsEnabled ^= true;
break;
case 0xfff4:
- _vm->_lang = ++_vm->_lang % 3;
+ _vm->_lang = (_vm->_lang + 1) % 3;
break;
case 0xfff3:
_vm->_configVoice ^= 3;