From 25ac921eba85f56bfacb635f122ab4f37a73827c Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Wed, 24 Dec 2008 09:37:31 +0000 Subject: [PATCH] read one scale too many git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@536 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/adx_header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/adx_header.c b/src/meta/adx_header.c index 909e88c9..26d83471 100644 --- a/src/meta/adx_header.c +++ b/src/meta/adx_header.c @@ -300,7 +300,7 @@ static int find_key(STREAMFILE *file, uint16_t *xor_start, uint16_t *xor_mult, u /* read in the scales */ { int i; - for (i=0; i <= scales_to_do; i++) { + for (i=0; i < scales_to_do; i++) { scales[i] = read_16bitBE(startoff+(bruteframe+i)*18, file); } }