summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-03-03 19:52:42 +0000
committeryexo <yexo@openttd.org>2011-03-03 19:52:42 +0000
commit18a2fadf35f1555085551adf7c6d9defd765ce20 (patch)
tree39ebb413ed82de00380bc12821ee066fecf1767e /src
parent3769b4f218a761fb31f3cfbd636a4d9e9365b4f9 (diff)
downloadopenttd-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
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
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]);