diff options
author | Le Philousophe | 2019-05-05 13:27:38 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 |
commit | 96978b207948502fc2da763627cc1964460498f2 (patch) | |
tree | c9cfb59eb58e70e366d3b59327df4e40d44b514f | |
parent | bdc6969ea4982363f5d698f62ee6f0f72a9c6a82 (diff) | |
download | scummvm-rg350-96978b207948502fc2da763627cc1964460498f2.tar.gz scummvm-rg350-96978b207948502fc2da763627cc1964460498f2.tar.bz2 scummvm-rg350-96978b207948502fc2da763627cc1964460498f2.zip |
CRYOMNI3D: Avoid LLVM warnings on the logic
The ifs should always be taken but better be safe
-rw-r--r-- | engines/cryomni3d/versailles/logic.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/cryomni3d/versailles/logic.cpp b/engines/cryomni3d/versailles/logic.cpp index e45c574f24..68f5bc417e 100644 --- a/engines/cryomni3d/versailles/logic.cpp +++ b/engines/cryomni3d/versailles/logic.cpp @@ -2629,6 +2629,8 @@ FILTER_EVENT(1, 14) { } else if (*event == 31143) { video = "10D2_3"; callback = &CryOmni3DEngine_Versailles::img_31143; + } else { + error("BUG: Shouldn't be here"); } } else if (_currentLevel == 2 || _placeStates[14].state == 1) { if (*event == 31142) { @@ -2637,6 +2639,8 @@ FILTER_EVENT(1, 14) { } else if (*event == 31143) { video = "11D2_1"; callback = &CryOmni3DEngine_Versailles::img_31143b; + } else { + error("BUG: Shouldn't be here"); } } else { error("Invalid state in filter event 1/14: level: %d/ placeState: %d", _currentLevel, @@ -3343,6 +3347,8 @@ FILTER_EVENT(4, 12_13_14) { } else if (*event == 34132) { video = "43ZB_2"; callback = &CryOmni3DEngine_Versailles::img_34132; + } else { + error("BUG: Shouldn't be here"); } playInGameVideo(video); |