Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix #7400: WaterClass for tree tiles was not converted for old saves preventing industry creation. #7405
#7309 added WaterClass to tree tiles without performing any savegame conversion, causing problems for old saves. The information is easily rebuildable from the tree ground type, which this PR does on load unconditionally.
An alternative solution is to revert #7309 and explicitly test for trees with tree ground type shore. A branch with that version is https://github.com/PeterN/OpenTTD/commits/fix-7400