diff options
author | yexo <yexo@openttd.org> | 2011-03-03 19:52:42 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2011-03-03 19:52:42 +0000 |
commit | 18a2fadf35f1555085551adf7c6d9defd765ce20 (patch) | |
tree | 39ebb413ed82de00380bc12821ee066fecf1767e | |
parent | 3769b4f218a761fb31f3cfbd636a4d9e9365b4f9 (diff) | |
download | openttd-18a2fadf35f1555085551adf7c6d9defd765ce20.tar.xz |
(svn r22164) -Fix: [NewGRF] disable a station newgrf when it contains an unterminated spritelayout in action0 prop 08 instead of crashing openttd
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 86e92a81f..cd1192443 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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]); |