Chunnel: Fix setting of tunnel ID in load conversion, add method to set ID.

This commit is contained in:
Jonathan G Rennison
2017-03-05 14:06:34 +00:00
parent afd8c6b867
commit ad15b47f72
2 changed files with 17 additions and 4 deletions

View File

@@ -58,6 +58,7 @@
#include "../error.h"
#include "../disaster_vehicle.h"
#include "../tracerestrict.h"
#include "../tunnel_map.h"
#include "saveload_internal.h"
@@ -2047,8 +2048,8 @@ bool AfterLoadGame()
const Tunnel *t = new Tunnel(start_tile, end_tile, false);
_m[start_tile].m2 = t->index;
_m[end_tile].m2 = t->index;
SetTunnelIndex(start_tile, t->index);
SetTunnelIndex(end_tile, t->index);
}
}
}