aboutsummaryrefslogtreecommitdiff
path: root/engines/macventure
diff options
context:
space:
mode:
authorD G Turner2017-01-12 07:11:46 +0000
committerD G Turner2017-01-12 07:11:46 +0000
commit6c4b89e6dc439299af68afaa75b366e4aece45c9 (patch)
tree9f43dee9683cc6d38d4652657371593225689b85 /engines/macventure
parent09269c2e4c93c0b02bf8aac2ee7e2d2101f55999 (diff)
downloadscummvm-rg350-6c4b89e6dc439299af68afaa75b366e4aece45c9.tar.gz
scummvm-rg350-6c4b89e6dc439299af68afaa75b366e4aece45c9.tar.bz2
scummvm-rg350-6c4b89e6dc439299af68afaa75b366e4aece45c9.zip
MACVENTURE: Fix Comparison Always True Compiler Warning.
There is no need for ABS() call as the parameters called on are both unsigned integers.
Diffstat (limited to 'engines/macventure')
-rw-r--r--engines/macventure/gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/macventure/gui.cpp b/engines/macventure/gui.cpp
index 3b7c3a244b..87d51619d8 100644
--- a/engines/macventure/gui.cpp
+++ b/engines/macventure/gui.cpp
@@ -335,7 +335,7 @@ WindowReference Gui::createInventoryWindow(ObjID objRef) {
Graphics::MacWindow *newWindow = _wm.addWindow(true, true, true);
WindowData newData;
GlobalSettings settings = _engine->getGlobalSettings();
- newData.refcon = (WindowReference)ABS(_inventoryWindows.size() + kInventoryStart); // This is a HACK
+ newData.refcon = (WindowReference)(_inventoryWindows.size() + kInventoryStart); // This is a HACK
if (_windowData->back().refcon < 0x80) { // There is already another inventory window
newData.bounds = _windowData->back().bounds; // Inventory windows are always last