Mercurial > MadButterfly
diff src/redraw_man.c @ 115:3895d2224e67
Tank
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 14 Sep 2008 02:17:57 +0800 |
parents | 1909d53071ab |
children | 257a1d314bcd |
line wrap: on
line diff
--- a/src/redraw_man.c Sun Sep 14 01:10:49 2008 +0800 +++ b/src/redraw_man.c Sun Sep 14 02:17:57 2008 +0800 @@ -43,7 +43,7 @@ for(i = 1; i < num; i++) { val = *(unsigned int *)(elms[i] + off); - for(j = i; j > 0; j--) { + for(j = i - 1; j > 0; j--) { if(*(unsigned int *)(elms[j - 1] + off) <= val) break; elms[j] = elms[j - 1];