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

desync-debugging
glx22 4 years ago committed by GitHub
parent d15c7dbdeb
commit cca613e3b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save