[Scummvm-cvs-logs] scummvm master -> 1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642
digitall
digitall at scummvm.org
Fri Apr 22 04:57:30 CEST 2011
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1d93c80c14 DRACI: Fix VS2010 Code Analysis Warnings Reported in Bug #3290634
Commit: 1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642
https://github.com/scummvm/scummvm/commit/1d93c80c148e3fc1310cbe9cd1a8f60b1c7c3642
Author: D G Turner (digitall at scummvm.org)
Date: 2011-04-21T19:55:22-07:00
Commit Message:
DRACI: Fix VS2010 Code Analysis Warnings Reported in Bug #3290634
Minor correction to use integer value, rather than boolean.
Changed paths:
engines/draci/mouse.cpp
diff --git a/engines/draci/mouse.cpp b/engines/draci/mouse.cpp
index d493fe1..5853d15 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;
More information about the Scummvm-git-logs
mailing list