mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
MORTEVIELLE: Fix CID 1063212
This commit is contained in:
parent
6cfd3028c1
commit
5a79444843
@ -1008,8 +1008,16 @@ void MortevielleEngine::fctSelfPut() {
|
||||
_crep = 997;
|
||||
else {
|
||||
int i;
|
||||
for (i = 1; (i <= 6) && (_num != _openObjects[i]); i++)
|
||||
;
|
||||
for (i = 1; i <= 6; i++) {
|
||||
if (_num == _openObjects[i])
|
||||
break;
|
||||
}
|
||||
|
||||
if (i > 6) {
|
||||
warning("Unexpected action: Too many open objects");
|
||||
return;
|
||||
}
|
||||
|
||||
if (_num == _openObjects[i]) {
|
||||
_curSearchObjId = objId;
|
||||
_crep = 999;
|
||||
|
Loading…
x
Reference in New Issue
Block a user