MORTEVIELLE: Fix CID 1063212

This commit is contained in:
Strangerke 2013-08-21 22:36:14 +02:00
parent 6cfd3028c1
commit 5a79444843

View File

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