aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2011-04-22 03:55:22 +0100
committerD G Turner2011-04-22 03:55:22 +0100
commit1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642 (patch)
tree1ea4748807af21d93658eeb7b1684acb93f22b0c
parentdda6df668a23cc5c0bb9225f6693b862a3e53d1c (diff)
downloadscummvm-rg350-1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642.tar.gz
scummvm-rg350-1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642.tar.bz2
scummvm-rg350-1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642.zip
DRACI: Fix VS2010 Code Analysis Warnings Reported in Bug #3290634
Minor correction to use integer value, rather than boolean.
-rw-r--r--engines/draci/mouse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/draci/mouse.cpp b/engines/draci/mouse.cpp
index d493fe192f..5853d15d21 100644
--- a/engines/draci/mouse.cpp
+++ b/engines/draci/mouse.cpp
@@ -113,7 +113,7 @@ void Mouse::setCursorType(CursorType cur) {
void Mouse::loadItemCursor(const GameItem *item, bool highlighted) {
const int itemID = item->_absNum;
- const int archiveIndex = 2 * itemID + highlighted;
+ const int archiveIndex = 2 * itemID + (highlighted ? 1 : 0);
CursorType newCursor = static_cast<CursorType> (kItemCursor + archiveIndex);
if (newCursor == getCursorType()) {
return;