aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/hotspots.cpp
diff options
context:
space:
mode:
authorD G Turner2019-12-12 17:31:01 +0000
committerD G Turner2019-12-12 17:31:01 +0000
commit799a088b6edb7772c01d60ebc3e6160bb26ce8fc (patch)
treec3586556fd1efe38db42629427c718af16ca41d7 /engines/gob/hotspots.cpp
parentf62dc99600da83128b7ee1c08bfb09ebc6539173 (diff)
downloadscummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.gz
scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.tar.bz2
scummvm-rg350-799a088b6edb7772c01d60ebc3e6160bb26ce8fc.zip
GOB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/gob/hotspots.cpp')
-rw-r--r--engines/gob/hotspots.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/gob/hotspots.cpp b/engines/gob/hotspots.cpp
index 0b47f43774..b314484fdf 100644
--- a/engines/gob/hotspots.cpp
+++ b/engines/gob/hotspots.cpp
@@ -1228,6 +1228,9 @@ uint16 Hotspots::handleInputs(int16 time, uint16 inputCount, uint16 &curInput,
if (curInput > 0)
curInput--;
break;
+
+ default:
+ break;
}
}
}
@@ -1451,6 +1454,9 @@ void Hotspots::evaluateNew(uint16 i, uint16 *ids, InputDesc *inputs,
flags = ((uint16) kTypeClick) + (windowNum << 8) + (flags << 4);
break;
+
+ default:
+ break;
}
// Add the new hotspot