aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-11 20:46:56 +0200
committerEugene Sandulenko2017-08-11 20:46:56 +0200
commite3d720f09b7e3455aa34ea5ac26e9c935100570f (patch)
tree186ebecbd99f0002b8ce9769fd9819ff7af533d3 /engines/sword1
parent4325605111d70917bf8de16fd50cd4f2b363782e (diff)
downloadscummvm-rg350-e3d720f09b7e3455aa34ea5ac26e9c935100570f.tar.gz
scummvm-rg350-e3d720f09b7e3455aa34ea5ac26e9c935100570f.tar.bz2
scummvm-rg350-e3d720f09b7e3455aa34ea5ac26e9c935100570f.zip
JANITORIAL: Fix GCC7 fall through warnings
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/logic.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp
index a0067ffbf5..1b70e8c9d8 100644
--- a/engines/sword1/logic.cpp
+++ b/engines/sword1/logic.cpp
@@ -497,12 +497,12 @@ int Logic::interpretScript(Object *compact, int id, Header *scriptModule, int sc
mCodeNumber = scriptCode[pc++];
mCodeArguments = scriptCode[pc++];
switch (mCodeArguments) {
- case 6: f = stack[--stackIdx];
- case 5: e = stack[--stackIdx];
- case 4: d = stack[--stackIdx];
- case 3: c = stack[--stackIdx];
- case 2: b = stack[--stackIdx];
- case 1: a = stack[--stackIdx];
+ case 6: f = stack[--stackIdx]; // fall through
+ case 5: e = stack[--stackIdx]; // fall through
+ case 4: d = stack[--stackIdx]; // fall through
+ case 3: c = stack[--stackIdx]; // fall through
+ case 2: b = stack[--stackIdx]; // fall through
+ case 1: a = stack[--stackIdx]; // fall through
case 0:
Debug::callMCode(mCodeNumber, mCodeArguments, a, b, c, d, e, f);
mCodeReturn = (this->*_mcodeTable[mCodeNumber])(compact, id, a, b, c, d, e, f);