[Scummvm-cvs-logs] SF.net SVN: scummvm: [32758] scummvm/trunk/engines/parallaction/dialogue. cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Sun Jun 22 19:36:15 CEST 2008


Revision: 32758
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32758&view=rev
Author:   thebluegr
Date:     2008-06-22 10:36:14 -0700 (Sun, 22 Jun 2008)

Log Message:
-----------
Fixed 2 MSVC warnings (potentially undefined behavior and possibly uninitialized variable used)

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/dialogue.cpp

Modified: scummvm/trunk/engines/parallaction/dialogue.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/dialogue.cpp	2008-06-22 14:46:08 UTC (rev 32757)
+++ scummvm/trunk/engines/parallaction/dialogue.cpp	2008-06-22 17:36:14 UTC (rev 32758)
@@ -268,11 +268,11 @@
 	}
 
 	int oldSelection = -1;
-	int selection;
+	int selection = 0;
 
 	uint32 event;
 	Common::Point p;
-	while (_engineFlags & kEngineQuit == 0) {
+	while ((_engineFlags & kEngineQuit) == 0) {
 
 		_vm->_input->readInput();
 		_vm->_input->getCursorPos(p);


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