From ba50475dfaa812f34da87c76e95672a8e6cc8702 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Thu, 31 Oct 2013 08:13:16 +0100 Subject: HUGO: Fix CID 1003199-1003200, better fix of CID 1003197-1003198 --- engines/hugo/mouse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hugo/mouse.cpp') 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)) -- cgit v1.2.3