1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-27 14:14:27 +01:00

Codechange: Use find_if to get default writeable saveload format. (#12849)

* Codechange: Use find_if to get default writeable savegame format.

This removes the last of lastof, and so the lastof macro is removed.
This commit is contained in:
Peter Nelson
2024-07-09 17:07:40 +01:00
committed by GitHub
parent 56b0eac2e9
commit 100dd7b6d1
3 changed files with 13 additions and 20 deletions

View File

@@ -1420,7 +1420,7 @@ public:
uint spacer_i = 0;
uint button_i = 0;
/* Index into the arrangement indices. The macro lastof cannot be used here! */
/* Index into the arrangement indices. */
const WidgetID *slotp = rtl ? &arrangement[arrangable_count - 1] : arrangement;
for (uint i = 0; i < arrangable_count; i++) {
uint slot = lookup[*slotp];