Changeset - r2374:b437b0660191
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-08-28 14:45:44
tron@openttd.org
(svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
strgen/strgen.c
Show inline comments
 
@@ -1006,7 +1006,7 @@ static int TranslateArgumentIdx(int argi
 
		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;
 
	}
 

	
0 comments (0 inline, 0 general)