summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-26 21:45:57 +0000
committersmatz <smatz@openttd.org>2008-05-26 21:45:57 +0000
commita7761332f6c7170388d3f8542ef680e0f509735e (patch)
treef7e1d84bfc398eba59135f4911dd9c806b2ce071 /src
parent88f2ef652e5321c9230eb3e55cf082d5392cdada (diff)
downloadopenttd-a7761332f6c7170388d3f8542ef680e0f509735e.tar.xz
(svn r13279) -Codechange: simplify condition for terminating loop when reversing list order
Diffstat (limited to 'src')
-rw-r--r--src/sortlist_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sortlist_type.h b/src/sortlist_type.h
index 1febe5a7d..0d681eb39 100644
--- a/src/sortlist_type.h
+++ b/src/sortlist_type.h
@@ -65,7 +65,7 @@ public: // Temporary: public for conversion only
do {
Swap(*a, *b);
- } while (((a + 1) != b) && (++a != --b));
+ } while (++a < --b);
}
public: