summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-06-09 13:02:40 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-06-09 13:02:40 +0000
commit5c8ff0a251342f7c7dd87a2d37ebe587ea54aba1 (patch)
treefeeb2f9b938fceae8a1fbb75e5e42e0f3c4d362b /src/station.cpp
parent3d0a0e8e48f1de9106628a11ed08fa0b71b961b4 (diff)
downloadopenttd-5c8ff0a251342f7c7dd87a2d37ebe587ea54aba1.tar.xz
(svn r25359) -Codechange: schedule jobs when tracking capacities of links
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;
}
}