diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 08ad216..5696723 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -37,7 +37,8 @@ int emap_addflooritem_post(int retVal, if (data) timeout = data->floorLifeTime; timer->delete(fitem->cleartimer, map->clearflooritem_timer); - fitem->cleartimer = timer->add(timer->gettick() + timeout, map->clearflooritem_timer, fitem->bl.id, 0); + if (timeout >= 0) + fitem->cleartimer = timer->add(timer->gettick() + timeout, map->clearflooritem_timer, fitem->bl.id, 0); } return retVal; } |