[Scummvm-cvs-logs] SF.net SVN: scummvm:[47689] scummvm/trunk/engines/kyra/gui_lol.cpp
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Sat Jan 30 00:52:58 CET 2010
Revision: 47689
http://scummvm.svn.sourceforge.net/scummvm/?rev=47689&view=rev
Author: lordhoto
Date: 2010-01-29 23:52:58 +0000 (Fri, 29 Jan 2010)
Log Message:
-----------
Fix yet another use of possibly undefined behavior reported by syke.
Modified Paths:
--------------
scummvm/trunk/engines/kyra/gui_lol.cpp
Modified: scummvm/trunk/engines/kyra/gui_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_lol.cpp 2010-01-29 23:08:12 UTC (rev 47688)
+++ scummvm/trunk/engines/kyra/gui_lol.cpp 2010-01-29 23:52:58 UTC (rev 47689)
@@ -2810,7 +2810,7 @@
_vm->_floatingCursorsEnabled ^= true;
break;
case 0xfff4:
- _vm->_lang = ++_vm->_lang % 3;
+ _vm->_lang = (_vm->_lang + 1) % 3;
break;
case 0xfff3:
_vm->_configVoice ^= 3;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list