diff options
author | Filippos Karapetis | 2015-12-15 01:03:05 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:05 +0100 |
commit | 2cfac1c4b07c9cffc80afbb825eb7d517f8d2446 (patch) | |
tree | 6c372d4647be7c12ee8d62d1594b9cdf7ee7e169 /engines/lab | |
parent | b661f2f8e69986ce93bea14847fc8f00208888e0 (diff) | |
download | scummvm-rg350-2cfac1c4b07c9cffc80afbb825eb7d517f8d2446.tar.gz scummvm-rg350-2cfac1c4b07c9cffc80afbb825eb7d517f8d2446.tar.bz2 scummvm-rg350-2cfac1c4b07c9cffc80afbb825eb7d517f8d2446.zip |
LAB: Fix compilation
Diffstat (limited to 'engines/lab')
-rw-r--r-- | engines/lab/engine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 00df1ebc4a..fc32cba5c5 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -901,6 +901,7 @@ bool LabEngine::processKey(IntuiMessage *curMsg, uint32 &msgClass, uint16 &quali void LabEngine::processMainButton(CloseDataPtr wrkClosePtr, uint16 &curInv, uint16 &lastInv, uint16 &oldDirection, bool &forceDraw, uint16 buttonId, uint16 &actionMode) { uint16 newDir; + uint16 oldRoomNum; switch (buttonId) { case kButtonPickup: @@ -975,7 +976,7 @@ void LabEngine::processMainButton(CloseDataPtr wrkClosePtr, uint16 &curInv, uint case kButtonForward: _closeDataPtr = nullptr; wrkClosePtr = nullptr; - uint16 oldRoomNum = _roomNum; + oldRoomNum = _roomNum; if (doGoForward(&_closeDataPtr)) { if (oldRoomNum == _roomNum) |