diff options
author | frosch <frosch@openttd.org> | 2012-01-15 17:33:35 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-01-15 17:33:35 +0000 |
commit | 92700c12625e273297ac5f3e3e870b9ed5d047ab (patch) | |
tree | 6a9b0c7d2032f822d9259b87919cbec7f0b03b40 /src/newgrf.cpp | |
parent | 1dc8de17e061dc7d076fb4ae9c1248277937fce8 (diff) | |
download | openttd-92700c12625e273297ac5f3e3e870b9ed5d047ab.tar.xz |
(svn r23807) -Codechange: GRFError::num_params is not needed, remove it.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index b9e110639..40e074da5 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -6195,12 +6195,10 @@ static void GRFLoadError(ByteReader *buf) } /* Only two parameter numbers can be used in the string. */ - uint i = 0; - for (; i < 2 && buf->HasData(); i++) { + for (uint i = 0; i < lengthof(error->param_value) && buf->HasData(); i++) { uint param_number = buf->ReadByte(); error->param_value[i] = _cur.grffile->GetParam(param_number); } - error->num_params = i; _cur.grfconfig->error = error; } |