summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp
index 9f078a1a2..d7cd0ea2b 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -25,6 +25,7 @@
#include "industry.h"
#include "core/random_func.hpp"
#include "linkgraph/linkgraph.h"
+#include "linkgraph/linkgraphschedule.h"
#include "table/strings.h"
@@ -94,6 +95,7 @@ Station::~Station()
if (lg != NULL) {
lg->RemoveNode(this->goods[c].node);
if (lg->Size() == 0) {
+ LinkGraphSchedule::Instance()->Unqueue(lg);
delete lg;
}
}