From 96978b207948502fc2da763627cc1964460498f2 Mon Sep 17 00:00:00 2001 From: Le Philousophe Date: Sun, 5 May 2019 13:27:38 +0200 Subject: CRYOMNI3D: Avoid LLVM warnings on the logic The ifs should always be taken but better be safe --- engines/cryomni3d/versailles/logic.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/cryomni3d/versailles') 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); -- cgit v1.2.3