aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel
diff options
context:
space:
mode:
authorPaul Gilbert2010-09-14 09:53:58 +0000
committerEugene Sandulenko2010-10-12 23:48:09 +0000
commit3fe27789709bbf5bf68a782a26fc11aaf8ca4e68 (patch)
tree955e5af46fb90539dc3772030e7833840ee28125 /engines/sword25/kernel
parent3e9610c6016e76f55672214896336c419eeff665 (diff)
downloadscummvm-rg350-3fe27789709bbf5bf68a782a26fc11aaf8ca4e68.tar.gz
scummvm-rg350-3fe27789709bbf5bf68a782a26fc11aaf8ca4e68.tar.bz2
scummvm-rg350-3fe27789709bbf5bf68a782a26fc11aaf8ca4e68.zip
SWORD25: Fix to array reversal, fixing path-finding
svn-id: r53349
Diffstat (limited to 'engines/sword25/kernel')
-rw-r--r--engines/sword25/kernel/kernel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword25/kernel/kernel.h b/engines/sword25/kernel/kernel.h
index c939f1ce23..55a64c783f 100644
--- a/engines/sword25/kernel/kernel.h
+++ b/engines/sword25/kernel/kernel.h
@@ -358,7 +358,7 @@ void ReverseArray(Common::Array<T> &Arr) {
if (Arr.size() < 2)
return;
- for (uint i = 0; i < (Arr.size() / 2 - 1); ++i) {
+ for (uint i = 0; i <= (Arr.size() / 2 - 1); ++i) {
T temp = Arr[i];
Arr[i] = Arr[Arr.size() - i - 1];
Arr[Arr.size() - i - 1] = temp;