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 8dbefe96..439aa41d 100644
--- a/conf/conf.c
+++ b/conf/conf.c
@@ -209,7 +209,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);
}