aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo
diff options
context:
space:
mode:
authorStrangerke2013-10-31 08:13:16 +0100
committerStrangerke2013-10-31 08:13:16 +0100
commitba50475dfaa812f34da87c76e95672a8e6cc8702 (patch)
tree2cde71036e39b23858586398f22ab5874885edbd /engines/hugo
parentf1817431dfc022f73b137ce8ca573e9864b2c64b (diff)
downloadscummvm-rg350-ba50475dfaa812f34da87c76e95672a8e6cc8702.tar.gz
scummvm-rg350-ba50475dfaa812f34da87c76e95672a8e6cc8702.tar.bz2
scummvm-rg350-ba50475dfaa812f34da87c76e95672a8e6cc8702.zip
HUGO: Fix CID 1003199-1003200, better fix of CID 1003197-1003198
Diffstat (limited to 'engines/hugo')
-rw-r--r--engines/hugo/mouse.cpp2
-rw-r--r--engines/hugo/object.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp
index ae286c8afb..a95170696c 100644
--- a/engines/hugo/mouse.cpp
+++ b/engines/hugo/mouse.cpp
@@ -169,7 +169,7 @@ void MouseHandler::processRightClick(const int16 objId, const int16 cx, const in
_vm->_object->useObject(objId); // Use status.objid on object
} else { // Clicked over viewport object
Object *obj = &_vm->_object->_objects[objId];
- int16 x = 0, y = 0;
+ int16 x, y;
switch (obj->_viewx) { // Where to walk to
case -1: // Walk to object position
if (_vm->_object->findObjectSpace(obj, &x, &y))
diff --git a/engines/hugo/object.cpp b/engines/hugo/object.cpp
index 7b4783e4d8..7b826c80b6 100644
--- a/engines/hugo/object.cpp
+++ b/engines/hugo/object.cpp
@@ -358,7 +358,7 @@ void ObjectHandler::showTakeables() {
* Find a clear space around supplied object that hero can walk to
*/
bool ObjectHandler::findObjectSpace(Object *obj, int16 *destx, int16 *desty) {
- debugC(1, kDebugObject, "findObjectSpace(obj, %d, %d)", *destx, *desty);
+ debugC(1, kDebugObject, "findObjectSpace(...)");
Seq *curImage = obj->_currImagePtr;
int16 y = obj->_y + curImage->_y2 - 1;