ZVISION: Fix Missing Default Switch Cases

These are flagged by GCC if -Wswitch-default is enabled.
This commit is contained in:
D G Turner 2019-10-24 02:04:53 +01:00
parent 4d97f7581a
commit 008e2b85b6
4 changed files with 11 additions and 0 deletions

View file

@ -245,6 +245,8 @@ bool ScriptManager::checkPuzzleCriteria(Puzzle *puzzle, uint counter) {
case Puzzle::LESS_THAN:
criteriaMet = getStateValue(entryIter->key) < argumentValue;
break;
default:
break;
}
// If one check returns false, don't keep checking