1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

Fix #8142, 5aa6351: Buoy owner and tile owner can be different (#8143)

This commit is contained in:
glx22
2020-05-12 15:22:58 +02:00
committed by GitHub
parent d15c7dbdeb
commit cca613e3b8

View File

@@ -899,7 +899,7 @@ bool AfterLoadGame()
BaseStation *bst = BaseStation::GetByTile(t);
/* Sanity check */
if (bst->owner != GetTileOwner(t)) SlErrorCorrupt("Wrong owner for station tile");
if (!IsBuoy(t) && bst->owner != GetTileOwner(t)) SlErrorCorrupt("Wrong owner for station tile");
/* Set up station spread */
bst->rect.BeforeAddTile(t, StationRect::ADD_FORCE);