diff options
author | tron <tron@openttd.org> | 2005-08-28 14:45:44 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-08-28 14:45:44 +0000 |
commit | 5bda47369491d157e27a97a6af5e422c022becf2 (patch) | |
tree | 37697e0dd8ca9c072fe6a29a2a1fd9e7233be0f1 /strgen | |
parent | f02b1f29676df6ed0ab8e8ebedc6f14c6a7fe707 (diff) | |
download | openttd-5bda47369491d157e27a97a6af5e422c022becf2.tar.xz |
(svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices
Diffstat (limited to 'strgen')
-rw-r--r-- | strgen/strgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c index abe879f68..719f91833 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -1006,7 +1006,7 @@ static int TranslateArgumentIdx(int argidx) Fatal("invalid argidx %d", argidx); for(i = sum = 0; i < argidx; i++) { - const CmdStruct *cs = _cur_pcs.cmd[i++]; + const CmdStruct *cs = _cur_pcs.cmd[i]; sum += cs ? cs->consumes : 1; } |