Rework handling of property 0x0A in AirportChangeInfo
commitef9bcda79e588413180dcd56835a66132dc6ac04
authorcirdan <cirdansw@gmail.com>
Sat, 25 Nov 2017 15:40:12 +0000 (25 16:40 +0100)
committercirdan <cirdansw@gmail.com>
Sat, 25 Nov 2017 15:40:12 +0000 (25 16:40 +0100)
tree1b98789163d2efa07d13d2015a451875f4d9a7b4
parent90f5ca6feea6892a6f55c9bde2afd55b412eff3f
Rework handling of property 0x0A in AirportChangeInfo

Scan the whole property payload in advance to count how many tiles
there are in each layout, so that no memory allocations are needed
until all the information has been scanned and we can avoid the
try-catch block.
src/newgrf.cpp