aboutsummaryrefslogtreecommitdiff
path: root/engines/lab
diff options
context:
space:
mode:
authorFilippos Karapetis2015-02-17 11:20:14 +0200
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commitd70819fa6751ad37170b4cbc13cc6106ad1bb8d4 (patch)
tree9b4844a1ae036d014cab626b3bc40d6afefabf37 /engines/lab
parent28bbcf5641d8d505b07bcc121c8b129f9fb1de43 (diff)
downloadscummvm-rg350-d70819fa6751ad37170b4cbc13cc6106ad1bb8d4.tar.gz
scummvm-rg350-d70819fa6751ad37170b4cbc13cc6106ad1bb8d4.tar.bz2
scummvm-rg350-d70819fa6751ad37170b4cbc13cc6106ad1bb8d4.zip
LAB: Silence false positives about uninitialized variables
Diffstat (limited to 'engines/lab')
-rw-r--r--engines/lab/engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index 06ac2194f5..ec9ae2882d 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -715,12 +715,12 @@ static void process(void) {
IntuiMessage *Msg;
uint32 Class;
- uint16 Code, Qualifier, MouseX, MouseY, ActionMode = 4;
+ uint16 Code = 0, Qualifier, MouseX, MouseY, ActionMode = 4;
uint16 CurInv = MAPNUM, LastInv = MAPNUM, Old;
bool ForceDraw = false, doit, GotMessage = true;
- uint16 OldRoomNum, OldDirection, GadID, NewDir;
+ uint16 OldRoomNum, OldDirection = 0, GadID = 0, NewDir;
CloseDataPtr OldCPtr, TempCPtr, HCPtr = NULL;
ViewDataPtr VPtr;