diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 86e92a81f8..cd1192443e 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]);