mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 06:34:33 +01:00
The bug comes in two slices: 1) the functions never actually checked if "tile" was a depot tile. This allowed executing the function on tile 0, where are the things like shadows of aircrafts are. 2) BuildDepotVehicleList() first checked if a vehicle is in a depot before checking if it was a primary vehicle. This is invalid for aircraft. Fixing the first hides the second, and fixing the second makes the first non-exploitable. But, fixing both felt like the best thing to do.
5.4 KiB
5.4 KiB