Compact custom layout memory allocation in StationSpec
commitb9bf1e31392ef17db81a5d4e36358885c0bf29c8
authorcirdan <cirdansw@gmail.com>
Sun, 26 Nov 2017 15:40:36 +0000 (26 16:40 +0100)
committercirdan <cirdansw@gmail.com>
Sun, 26 Nov 2017 15:40:36 +0000 (26 16:40 +0100)
treeba3e5818e1d3fdb45349a43bb0e7418f96ee08ef
parent5dc6cb971333577a0ed1e410cc8e32f379c55529
Compact custom layout memory allocation in StationSpec

Allocate the arrays of custom layout pointers, the array of maximum
layout length per width and the custom layouts themselves for a
StationSpec in a single memory chunk.
src/newgrf.cpp
src/newgrf_station.h
src/station_cmd.cpp