summaryrefslogtreecommitdiff
path: root/src/common/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/timer.c')
-rw-r--r--src/common/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/timer.c b/src/common/timer.c
index b76a82da6..2252a3da8 100644
--- a/src/common/timer.c
+++ b/src/common/timer.c
@@ -283,7 +283,7 @@ struct TimerData* get_timer(int tid)
/// Returns 0 on success, < 0 on failure.
int delete_timer(int tid, TimerFunc func)
{
- if( tid <= 0 || tid >= timer_data_num ) {
+ if( tid < 0 || tid >= timer_data_num ) {
ShowError("delete_timer error : no such timer %d (%08x(%s))\n", tid, (int)func, search_timer_func_list(func));
return -1;
}