diff options
author | Le Philousophe | 2019-10-19 20:29:56 +0200 |
---|---|---|
committer | Le Philousophe | 2019-10-19 20:29:56 +0200 |
commit | 49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a (patch) | |
tree | 3f81d63c60bf5719925023818cf7987775142c1c /engines/cryomni3d/versailles | |
parent | b0ed255b391b23ad0126e030f52a53783f4004c0 (diff) | |
download | scummvm-rg350-49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a.tar.gz scummvm-rg350-49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a.tar.bz2 scummvm-rg350-49476a1bc3cf4f9e7aceac2c21fb30dcfcacfa3a.zip |
CRYOMNI3D: Fix default cases to raise errors
Diffstat (limited to 'engines/cryomni3d/versailles')
-rw-r--r-- | engines/cryomni3d/versailles/logic.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/cryomni3d/versailles/logic.cpp b/engines/cryomni3d/versailles/logic.cpp index 248226c7a8..10e96d1413 100644 --- a/engines/cryomni3d/versailles/logic.cpp +++ b/engines/cryomni3d/versailles/logic.cpp @@ -2683,7 +2683,6 @@ IMG_CB(88003) { FixedImgCallback callback = nullptr; switch (_gameVariables[GameVariables::kBombState]) { case 1: - default: callback = &CryOmni3DEngine_Versailles::img_88003b; break; case 2: @@ -2698,6 +2697,9 @@ IMG_CB(88003) { case 5: callback = &CryOmni3DEngine_Versailles::img_88003f; break; + default: + error("BUG: Invalid bomb state"); + break; } ZonFixedImage::CallbackFunctor *functor = new Common::Functor1Mem<ZonFixedImage *, void, CryOmni3DEngine_Versailles>(this, callback); @@ -4310,6 +4312,7 @@ void CryOmni3DEngine_Versailles::filterEventLevel5UpdatePlaceStates() { setPlaceState(16, 5); break; default: + error("BUG: Invalid ladder state"); break; } } else { @@ -4328,6 +4331,7 @@ void CryOmni3DEngine_Versailles::filterEventLevel5UpdatePlaceStates() { setPlaceState(16, 6); break; default: + error("BUG: Invalid ladder state"); break; } } |