From 8ba29543f3529e15c6547c621c13b235ae7eac08 Mon Sep 17 00:00:00 2001 From: angel Date: Tue, 27 Dec 2005 05:39:25 +0000 Subject: [PATCH] Fixed a bug in ss_song_render(): tracks with trk_id -2 were having an (out of bound) instrument assigned. git-svn-id: file:///home/angel/tmp/svn-triptico/ahxm/trunk@760 c87de0a0-a11c-0410-a1e5-866214bc28b2 --- VERSION | 2 +- ss_song.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index bc0d1b1..84d2082 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -#define VERSION "1.0.0" +#define VERSION "1.0.1-cvs" diff --git a/ss_song.c b/ss_song.c index b0a11a7..c1b1c52 100644 --- a/ss_song.c +++ b/ss_song.c @@ -688,10 +688,10 @@ int ss_song_render(int skip_secs) while(go && e->generic.frame <= frame) { /* take the instrument */ - if(e->generic.trk_id == -1) - i=NULL; + if(e->generic.trk_id < 0) + i = NULL; else - i=&ss_song_ins[e->generic.trk_id]; + i = &ss_song_ins[e->generic.trk_id]; switch(e->generic.type) { -- 2.11.4.GIT