aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game/transport/pellerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/game/transport/pellerator.cpp')
-rw-r--r--engines/titanic/game/transport/pellerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/game/transport/pellerator.cpp b/engines/titanic/game/transport/pellerator.cpp
index 23c61ad0ba..095202d176 100644
--- a/engines/titanic/game/transport/pellerator.cpp
+++ b/engines/titanic/game/transport/pellerator.cpp
@@ -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; _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; _destination > newDest; --_destination) {
switch (_destination) {
case 0:
case 1: