Mercurial > hg > openttd
changeset 7161:85b2fbf61f79 draft
(svn r10435) -Fix (r9315): numinfo starts from 1, not 0, so make it possible to define a house with a local id of 255.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Wed, 04 Jul 2007 13:01:55 +0000 |
parents | 0401478308b3 |
children | e548e286a5b6 |
files | src/newgrf.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1187,8 +1187,8 @@ byte *buf = *bufp; bool ret = false; - if (hid + numinfo >= HOUSE_MAX) { - grfmsg(1, "TownHouseChangeInfo: Too many houses loaded (%u), max (%u). Ignoring.", hid + numinfo, HOUSE_MAX-1); + if (hid + numinfo > HOUSE_MAX) { + grfmsg(1, "TownHouseChangeInfo: Too many houses loaded (%u), max (%u). Ignoring.", hid + numinfo, HOUSE_MAX); return false; }