summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 6bd215752..17eba6b21 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9285,7 +9285,10 @@ BUILDIN(addtimer)
if( sd == NULL )
return true;
- pc->addeventtimer(sd,tick,event);
+ if (!pc->addeventtimer(sd,tick,event)) {
+ ShowWarning("buildin_addtimer: Event timer is full, can't add new event timer. (cid:%d timer:%s)\n",sd->status.char_id,event);
+ return false;
+ }
return true;
}
/*==========================================