summaryrefslogtreecommitdiff
path: root/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'timer.c')
-rw-r--r--timer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/timer.c b/timer.c
index 78d848f..9cc3e62 100644
--- a/timer.c
+++ b/timer.c
@@ -266,7 +266,11 @@ int cUpdate::performTimerJobs()
}
else
{
+#if APIVERSNUM >= 20301
const cChannel* channel = channels->GetByChannelID(channelId);
+#else
+ cChannel* channel = channels->GetByChannelID(channelId);
+#endif
timer = new cTimer(no, no, channel); // timer without a event
}