From c2ee8d70e48a79a1f3fbe4003c82a545a29ae195 Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 28 Dec 2004 11:51:31 +0000 Subject: (svn r1288) -Codechange: changed _map2 to an uint16. It is still saved and loaded as an uint8 till the savegame version is bumped to version 5. Then it works automaticly as a fully uint16. So _stations[] can not be increased till after the bump!! --- oldloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oldloader.c') diff --git a/oldloader.c b/oldloader.c index d2220eca0..93b395119 100644 --- a/oldloader.c +++ b/oldloader.c @@ -1383,10 +1383,10 @@ bool LoadOldSaveGame(const char *file) // copy sections of it to our datastructures. map_size = MapSize(); memcpy(_map_owner, m->map_owner, map_size); - memcpy(_map2, m->map2, map_size); memcpy(_map_type_and_height, m->map_type_and_height, map_size); memcpy(_map5, m->map5, map_size); for (i = 0; i != map_size; i++) { + _map2[i] = m->map2[i]; _map3_lo[i] = m->map3[i] & 0xFF; _map3_hi[i] = m->map3[i] >> 8; } -- cgit v1.2.3-54-g00ecf