From 399dcc2e2f08b70175f7b3c4516f99cf80b0deb8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 16 Aug 2016 23:28:22 -0400 Subject: TITANIC: Fix for loop clauses in CPellerator --- engines/titanic/game/transport/pellerator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') 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: -- cgit v1.2.3