diff options
author | smatz <smatz@openttd.org> | 2008-05-26 21:45:57 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-05-26 21:45:57 +0000 |
commit | a7761332f6c7170388d3f8542ef680e0f509735e (patch) | |
tree | f7e1d84bfc398eba59135f4911dd9c806b2ce071 /src | |
parent | 88f2ef652e5321c9230eb3e55cf082d5392cdada (diff) | |
download | openttd-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.h | 2 |
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: |