From 5e345e0e7f49b17a56b7538bffcd6aa982d0f06d Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 11 Apr 2006 10:05:52 +0000 Subject: (svn r4352) - NewGRF Codechange: dynamically allocate the memory used to store custom station data. This saves us approximately 40KB per GRF file, if there are no stations defined. --- newgrf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newgrf.h') diff --git a/newgrf.h b/newgrf.h index a5aeb49e6..6739d23d8 100644 --- a/newgrf.h +++ b/newgrf.h @@ -34,7 +34,8 @@ struct GRFFile { int spritegroups_count; SpriteGroup **spritegroups; - StationSpec stations[256]; + uint num_stations; + StationSpec *stations; uint32 param[0x80]; uint param_end; /// one more than the highest set parameter -- cgit v1.2.3-54-g00ecf