diff options
author | D G Turner | 2019-10-23 03:31:46 +0100 |
---|---|---|
committer | D G Turner | 2019-10-23 03:31:46 +0100 |
commit | fe3eae346e67daa7e94098205636b6896e42f1c1 (patch) | |
tree | 067814d34dde66def3a9dd4265319a419f098b9f /engines/wage/script.cpp | |
parent | 56191eded6893a83edf1f01d01f23c50d43d7f92 (diff) | |
download | scummvm-rg350-fe3eae346e67daa7e94098205636b6896e42f1c1.tar.gz scummvm-rg350-fe3eae346e67daa7e94098205636b6896e42f1c1.tar.bz2 scummvm-rg350-fe3eae346e67daa7e94098205636b6896e42f1c1.zip |
WAGE: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r-- | engines/wage/script.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp index 558f493847..3b20e965cc 100644 --- a/engines/wage/script.cpp +++ b/engines/wage/script.cpp @@ -621,8 +621,10 @@ void Script::skipBlock() { case 0x8C: // SOUND case 0x8E: // LET case 0x95: // MENU - while (_data->readByte() != 0xFD) - ; + while (_data->readByte() != 0xFD); + break; + default: + break; } } } @@ -801,6 +803,8 @@ bool Script::compare(Operand *o1, Operand *o2, int comparator) { _world->move(o1->_value.chr, o2->_value.scene); _handled = true; // TODO: Is this correct? break; + default: + break; } return false; |