Files
@ r21606:c4d9fa63836a
Branch filter:
Location: cpp/openttd-patchpack/source/src/script/api/script_townlist.cpp
r21606:c4d9fa63836a
1000 B
text/x-c
(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