diff options
author | D G Turner | 2019-11-11 03:07:47 +0000 |
---|---|---|
committer | D G Turner | 2019-11-11 03:07:47 +0000 |
commit | 8222f054c05f279281261a15ddc51e6dbbbc8e31 (patch) | |
tree | e00ce3a45432591557b1fa8885cae8e95385ab17 | |
parent | b86c2923cfd301bb774c068497f2b5632c591325 (diff) | |
download | scummvm-rg350-8222f054c05f279281261a15ddc51e6dbbbc8e31.tar.gz scummvm-rg350-8222f054c05f279281261a15ddc51e6dbbbc8e31.tar.bz2 scummvm-rg350-8222f054c05f279281261a15ddc51e6dbbbc8e31.zip |
MUTATIONOFJB: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
-rw-r--r-- | engines/mutationofjb/gamescreen.cpp | 4 | ||||
-rw-r--r-- | engines/mutationofjb/tasks/sequentialtask.cpp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/mutationofjb/gamescreen.cpp b/engines/mutationofjb/gamescreen.cpp index b8d6743570..d7abcb11dd 100644 --- a/engines/mutationofjb/gamescreen.cpp +++ b/engines/mutationofjb/gamescreen.cpp @@ -166,6 +166,8 @@ void GameScreen::handleEvent(const Common::Event &event) { _currentAction = ActionInfo::PickUp; _currentPickedItem.clear(); break; + default: + break; } break; } @@ -294,6 +296,7 @@ void GameScreen::updateStatusBarText(const Common::String &entity, bool inventor case ActionInfo::Use: actionStringType = HardcodedStrings::USE; break; + case ActionInfo::Look: default: actionStringType = HardcodedStrings::LOOK; break; @@ -301,6 +304,7 @@ void GameScreen::updateStatusBarText(const Common::String &entity, bool inventor } else { switch (_currentAction) { case ActionInfo::Look: + default: actionStringType = HardcodedStrings::LOOK; break; case ActionInfo::Walk: diff --git a/engines/mutationofjb/tasks/sequentialtask.cpp b/engines/mutationofjb/tasks/sequentialtask.cpp index 20b5290d5d..0b5d5797ff 100644 --- a/engines/mutationofjb/tasks/sequentialtask.cpp +++ b/engines/mutationofjb/tasks/sequentialtask.cpp @@ -51,6 +51,7 @@ void SequentialTask::runTasks() { getTaskManager()->startTask(task); break; case RUNNING: + default: return; case FINISHED: _tasks.remove_at(0); |