CRYOMNI3D: Fix default cases to raise errors

This commit is contained in:
Le Philousophe 2019-10-19 20:29:56 +02:00
parent b0ed255b39
commit 49476a1bc3
2 changed files with 8 additions and 2 deletions

View File

@ -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;
}
}

View File

@ -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) {