summaryrefslogtreecommitdiff
path: root/src/multichannel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/multichannel.c')
-rw-r--r--src/multichannel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/multichannel.c b/src/multichannel.c
index de69d5c..952b567 100644
--- a/src/multichannel.c
+++ b/src/multichannel.c
@@ -109,8 +109,9 @@ void multichannel_set_current_channel(struct multichannel *m, int i)
m->current = m->channel[i];
}
-void multichannel_change_current_channel(struct multichannel *m, int i)
+void
+multichannel_change_current_channel(struct multichannel *m, struct channel *c)
{
- if (m->current != m->channel[i])
- m->current = m->channel[i];
+ if (m->current != c)
+ m->current = c;
}