Mercurial > hg > openttd
changeset 17415:5de4eeca544a draft
(svn r22164) -Fix: [NewGRF] disable a station newgrf when it contains an unterminated spritelayout in action0 prop 08 instead of crashing openttd
author | yexo <yexo@openttd.org> |
---|---|
date | Thu, 03 Mar 2011 19:52:42 +0000 |
parents | 1b0094757e18 |
children | 8386ff571548 |
files | src/newgrf.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1217,7 +1217,7 @@ 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]);