aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorStrangerke2013-08-21 22:02:13 +0200
committerStrangerke2013-08-21 22:02:13 +0200
commitd0ce04c96824ab0c2957e33ceb830fb1d9caf8eb (patch)
tree37d334bf1ac5360a7d5ee9efd02bc6f47c236687 /engines/tsage
parent55124584400b73800362cc2e20b95679a4933471 (diff)
downloadscummvm-rg350-d0ce04c96824ab0c2957e33ceb830fb1d9caf8eb.tar.gz
scummvm-rg350-d0ce04c96824ab0c2957e33ceb830fb1d9caf8eb.tar.bz2
scummvm-rg350-d0ce04c96824ab0c2957e33ceb830fb1d9caf8eb.zip
TSAGE: R2R - Fix CID 1004057
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes1.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.cpp b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
index 512ece5325..8227a92f4c 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes1.cpp
+++ b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
@@ -5977,7 +5977,8 @@ void Scene1337::subCF31D() {
if ((_arrunkObj1337[1]._arr2[i]._field34 == 0) && (!subC2687(_arrunkObj1337[1]._arr3[0]._field34))) {
subC340B(&_arrunkObj1337[1]._arr1[tmpVal], &_arrunkObj1337[1]._arr2[i]);
found = true;
- }
+ break;
+ }
}
}
@@ -5987,8 +5988,10 @@ void Scene1337::subCF31D() {
tmpVal = subC274D(1);
int tmpVal2 = subC331B(1);
- if ((tmpVal != -1) && ( tmpVal2 != -1))
+ if ((tmpVal != -1) && ( tmpVal2 != -1)) {
subC358E(&_arrunkObj1337[1]._arr1[tmpVal], tmpVal2);
+ found = true;
+ }
if (found)
return;