station_cmd.c
changeset 1902 5d653da1abb7
parent 1901 fb05044cf5c3
child 1935 f43f062c9498
--- a/station_cmd.c	Sat Jun 04 11:56:32 2005 +0000
+++ b/station_cmd.c	Sat Jun 04 12:13:24 2005 +0000
@@ -2827,7 +2827,7 @@
 
 			SetTileType(tile, MP_STATION);
 			_map5[tile] = 0x4B;
-			_map_owner[tile] = OWNER_NONE;
+			SetTileOwner(tile, OWNER_NONE);
 			_map3_lo[tile] = 0;
 			_map3_hi[tile] = 0;
 			_map2[tile] = st->index;
@@ -2884,7 +2884,7 @@
 
 	if (new_player != 255) {
 		Station *st = GetStation(_map2[tile]);
-		_map_owner[tile] = new_player;
+		SetTileOwner(tile, new_player);
 		st->owner = new_player;
 		_global_station_sort_dirty = true; // transfer ownership of station to another player
 		InvalidateWindowClasses(WC_STATION_LIST);