mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
CRYOMNI3D: Fix default cases to raise errors
This commit is contained in:
parent
b0ed255b39
commit
49476a1bc3
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -286,10 +286,12 @@ void HNMDecoder::HNM4VideoTrack::decodeInterframe(Common::SeekableReadStream *st
|
||||
currentPos += width;
|
||||
break;
|
||||
case 3:
|
||||
default:
|
||||
// End of picture
|
||||
eop = true;
|
||||
break;
|
||||
default:
|
||||
error("BUG: Shouldn't be here");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
if (size < 2) {
|
||||
|
Loading…
Reference in New Issue
Block a user