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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user