summaryrefslogtreecommitdiff
path: root/conf/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'conf/conf.c')
-rw-r--r--conf/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/conf.c b/conf/conf.c
index f64932f5..4e6354b2 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -206,7 +206,7 @@ config_del_obstacle(struct config *c)
{
DBG("+++ deleting obstacle %d\n", c->obstacle_count);
c->obstacle_count--;
- if (!c->obstacle_count)
+ if (!c->obstacle_count && (c != config))
ev_schedule(config_event);
}