OpenTTD

Tasklist

FS#5462 - Crash with industry var 61

Attached to Project: OpenTTD
Opened by David Dallaston (Pikka) - Tuesday, 05 February 2013, 15:59 GMT
Last edited by Peter Nelson (peter1138) - Tuesday, 05 February 2013, 21:38 GMT
Type Bug
Category NewGRF → NewIndustries
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Vintage Kablooie. OpenTTD crashes on world generation, r24967.

Responsible Pseudosprite is

169 * 33 02 0A 10 85 61 00 20 0F 00 \2* 1A 20 \w25 \2+ 1A 20 \w425
\2psto 1A 00 \w1 01
AA 00 \w0 \w0 AA 00

Swapping out var 61 for any other var (eg 1A for a constant) does not crash and produces the expected results.

Test GRF can be cobbled together if required.
This task depends upon

Closed by  Peter Nelson (peter1138)
Tuesday, 05 February 2013, 21:38 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r24973
Comment by Peter Nelson (peter1138) - Tuesday, 05 February 2013, 16:23 GMT
Patch prevents testing against tile when tile is invalid. May not do what the NewGRF author intends but will prevent crashing.
Comment by David Dallaston (Pikka) - Tuesday, 05 February 2013, 17:02 GMT
What more could I ask?

Loading...