mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r22164) -Fix: [NewGRF] disable a station newgrf when it contains an unterminated spritelayout in action0 prop 08 instead of crashing openttd
This commit is contained in:
parent
3769b4f218
commit
18a2fadf35
@ -1217,7 +1217,7 @@ static ChangeInfoResult StationChangeInfo(uint stid, int numinfo, int prop, Byte
|
||||
|
||||
MapSpriteMappingRecolour(&dts->ground);
|
||||
|
||||
while (buf->HasData()) {
|
||||
for (;;) {
|
||||
/* no relative bounding box support */
|
||||
dts->seq = ReallocT(const_cast<DrawTileSeqStruct *>(dts->seq), ++seq_count);
|
||||
DrawTileSeqStruct *dtss = const_cast<DrawTileSeqStruct *>(&dts->seq[seq_count - 1]);
|
||||
|
Loading…
Reference in New Issue
Block a user