The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Leartin on January 13, 2021, 06:05:45 PM

Title: buy citybuilding tool crashing the game
Post by: Leartin on January 13, 2021, 06:05:45 PM
using the citybuilding tool on a non-building causes a crash.
Reason: Latest fix tries to get the first tile before we check whether a building was found.

Additionally, the attached fix also solves:
- cost for buying a citybuilding (before, it referenced the clicking position as first tile, hence buying the lowest tile was cheapest)
- removal tool also refers to first tile now, disabling deletion of buildings other players bought.
Title: Re: buy citybuilding tool crashing the game
Post by: prissi on January 14, 2021, 12:54:58 AM
THank you, in in r9564