aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;