diff options
author | rubidium <rubidium@openttd.org> | 2014-08-16 10:20:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-08-16 10:20:15 +0000 |
commit | d733c7d196fc7077b97117fc3cad7a909f737bba (patch) | |
tree | 186510f18885c4d08a34efe33ceff2073b8e5e37 /src/script/api/ai/ai_list.hpp.sq | |
parent | f4a381f9919e127715956dd80ba6949b991e0d36 (diff) | |
download | openttd-d733c7d196fc7077b97117fc3cad7a909f737bba.tar.xz |
(svn r26736) -Fix [Script]: infinite loop (by scripts; always returning the same item) when sorted by item in descending order by oddly constructed FindNext that uses forward iterators. Simply use the same code as the ascending item sort but use the reverse iterator instead of the forward. Also do this same trick for the descending value sort even though I couldn't trigger the problem there
Diffstat (limited to 'src/script/api/ai/ai_list.hpp.sq')
0 files changed, 0 insertions, 0 deletions