1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

Fix: Picker window 'used' filter for rail waypoints

The first two field of struct PickerItem were not populated.
These are required for set operations.
This commit is contained in:
Jonathan G Rennison
2024-08-22 15:05:50 +01:00
committed by Peter Nelson
parent 29ff3d7b90
commit cb2f4f319c

View File

@@ -1840,7 +1840,7 @@ public:
}
for (const auto &sm : wp->speclist) {
if (sm.spec == nullptr) continue;
items.insert({0, 0, sm.spec->class_index, sm.spec->index});
items.insert({sm.grfid, sm.localidx, sm.spec->class_index, sm.spec->index});
}
}
}