summaryrefslogtreecommitdiff
path: root/newgrf.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-04-11 10:05:52 +0000
committerpeter1138 <peter1138@openttd.org>2006-04-11 10:05:52 +0000
commit5e345e0e7f49b17a56b7538bffcd6aa982d0f06d (patch)
tree8c858faf9fc6315a46b67866d8e2ad36afb77dfa /newgrf.h
parentd38964e49ab78612bbf44b876c7da6dee789b377 (diff)
downloadopenttd-5e345e0e7f49b17a56b7538bffcd6aa982d0f06d.tar.xz
(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.
Diffstat (limited to 'newgrf.h')
-rw-r--r--newgrf.h3
1 files changed, 2 insertions, 1 deletions
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