diff options
author | Filippos Karapetis | 2008-06-22 17:36:14 +0000 |
---|---|---|
committer | Filippos Karapetis | 2008-06-22 17:36:14 +0000 |
commit | 9194f391854466dd5c54341fcc6ba1d5f4ca6eaa (patch) | |
tree | 8cb8a2282a713600cc2f9471a89b17cf2308f92a | |
parent | d2609258ccaf536cc4178d1e9c690ad472ae877c (diff) | |
download | scummvm-rg350-9194f391854466dd5c54341fcc6ba1d5f4ca6eaa.tar.gz scummvm-rg350-9194f391854466dd5c54341fcc6ba1d5f4ca6eaa.tar.bz2 scummvm-rg350-9194f391854466dd5c54341fcc6ba1d5f4ca6eaa.zip |
Fixed 2 MSVC warnings (potentially undefined behavior and possibly uninitialized variable used)
svn-id: r32758
-rw-r--r-- | engines/parallaction/dialogue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/parallaction/dialogue.cpp b/engines/parallaction/dialogue.cpp index b9dea60dc0..903c71907c 100644 --- a/engines/parallaction/dialogue.cpp +++ b/engines/parallaction/dialogue.cpp @@ -268,11 +268,11 @@ int16 DialogueManager::selectAnswer() { } 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); |