diff options
author | Joseph-Eugene Winzer | 2018-03-25 01:29:10 +0100 |
---|---|---|
committer | Thierry Crozat | 2018-04-15 18:28:38 +0100 |
commit | d5105ab9c70a2ae643dff3cc4267d59e31f53450 (patch) | |
tree | cfc6add98324a9381735cfa11d533b33f63846b5 | |
parent | f78a8358167c2aa96daf4eefa1b1a1567cad0ffa (diff) | |
download | scummvm-rg350-d5105ab9c70a2ae643dff3cc4267d59e31f53450.tar.gz scummvm-rg350-d5105ab9c70a2ae643dff3cc4267d59e31f53450.tar.bz2 scummvm-rg350-d5105ab9c70a2ae643dff3cc4267d59e31f53450.zip |
SUPERNOVA: Fixes fallthrough warning
-rw-r--r-- | engines/supernova/rooms.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp index 7d68cdfda1..f1e1342bf2 100644 --- a/engines/supernova/rooms.cpp +++ b/engines/supernova/rooms.cpp @@ -2612,18 +2612,20 @@ bool AxacussCorridor5::handleMoneyDialog() { _gm->wait(2); _gm->shot(3, _gm->invertSection(3)); break; - case 3: - if (_gm->_state._money >= 900) { - stopInteract(_gm->_state._money); - return true; - } - // fall through case 2: if (_gm->_state._money > 1100) { stopInteract(_gm->_state._money - 200); return true; } _gm->reply(kStringAxacussCorridor5_6, 1, 1 + 128); + break; + case 3: + if (_gm->_state._money >= 900) { + stopInteract(_gm->_state._money); + return true; + } + _gm->reply(kStringAxacussCorridor5_6, 1, 1 + 128); + break; } } return false; |