(svn r25359) -Codechange: schedule jobs when tracking capacities of links

This commit is contained in:
fonsinchen
2013-06-09 13:02:40 +00:00
parent 3d0a0e8e48
commit 5c8ff0a251
2 changed files with 6 additions and 0 deletions

View File

@@ -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;
}
}