From 18a2fadf35f1555085551adf7c6d9defd765ce20 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 3 Mar 2011 19:52:42 +0000 Subject: (svn r22164) -Fix: [NewGRF] disable a station newgrf when it contains an unterminated spritelayout in action0 prop 08 instead of crashing openttd --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/newgrf.cpp') 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(dts->seq), ++seq_count); DrawTileSeqStruct *dtss = const_cast(&dts->seq[seq_count - 1]); -- cgit v1.2.3-70-g09d2