Skip to content

Commit

Permalink
MORTEVIELLE: Fix CID 1063212
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Aug 21, 2013
1 parent 6cfd302 commit 5a79444
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions engines/mortevielle/actions.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 5a79444

Please sign in to comment.