aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-16 23:28:22 -0400
committerPaul Gilbert2016-08-16 23:28:22 -0400
commit399dcc2e2f08b70175f7b3c4516f99cf80b0deb8 (patch)
tree084f46d5016e431e8521c718a6a1fd3c1f93c8ae /engines
parentfca21397ac68457acf3bb5ec24e699d9ce234c15 (diff)
downloadscummvm-rg350-399dcc2e2f08b70175f7b3c4516f99cf80b0deb8.tar.gz
scummvm-rg350-399dcc2e2f08b70175f7b3c4516f99cf80b0deb8.tar.bz2
scummvm-rg350-399dcc2e2f08b70175f7b3c4516f99cf80b0deb8.zip
TITANIC: Fix for loop clauses in CPellerator
Diffstat (limited to 'engines')
-rw-r--r--engines/titanic/game/transport/pellerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp
index 08ebb7a213..91930651ab 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -76,7 +76,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
"Pellerator.Node 1.N" : "Pellerator.Node 1.S");
if (name == "PelleratorObject") {
- for (; newDest > _destination; ++_destination) {
+ for (; _destination < newDest; ++_destination) {
switch (_destination) {
case 0:
case 1:
@@ -123,7 +123,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
}
}
} else {
- for (; newDest > _destination; ++_destination) {
+ for (; _destination < newDest; ++_destination) {
switch (_destination) {
case 0:
case 1:
@@ -177,7 +177,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
"Pellerator.Node 1.N" : "Pellerator.Node 1.S");
if (name == "PelleratorObject") {
- for (; _destination < newDest; --_destination) {
+ for (; _destination > newDest; --_destination) {
switch (_destination) {
case 0:
case 1:
@@ -229,7 +229,7 @@ bool CPellerator::StatusChangeMsg(CStatusChangeMsg *msg) {
}
}
} else {
- for (; _destination < newDest; --_destination) {
+ for (; _destination > newDest; --_destination) {
switch (_destination) {
case 0:
case 1: