News:

Want to praise Simutrans?
Your feedback is important for us ;D.

buy citybuilding tool crashing the game

Started by Leartin, January 13, 2021, 06:05:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leartin

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.

prissi