Changeset - r15021:719a2ed6366f
[Not reviewed]
master
0 1 0
yexo - 14 years ago 2010-04-17 09:12:26
yexo@openttd.org
(svn r19647) -Fix [FS#3768]: trains loaded above the original IDs didn't have a default railtypelabel assigned to them, causing them to be unavailable
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -404,6 +404,9 @@ static Engine *GetNewEngine(const GRFFil
 
		size_t len = (Engine::GetPoolSize() - engine_pool_size) * sizeof(*_gted);
 
		memset(_gted + engine_pool_size, 0, len);
 
	}
 
	if (type == VEH_TRAIN) {
 
		_gted[e->index].railtypelabel = GetRailTypeInfo(e->u.rail.railtype)->label;
 
	}
 

	
 
	grfmsg(5, "Created new engine at index %d for GRFID %x, type %d, index %d", e->index, BSWAP32(file->grfid), type, internal_id);
 

	
0 comments (0 inline, 0 general)