(svn r26286) -Fix: Thoroughly erase dead flows.
This commit is contained in:
@@ -99,8 +99,9 @@ Station::~Station()
|
||||
if (lg == NULL) continue;
|
||||
|
||||
for (NodeID node = 0; node < lg->Size(); ++node) {
|
||||
Station *st = Station::Get((*lg)[node].Station());
|
||||
st->goods[c].flows.erase(this->index);
|
||||
if ((*lg)[node][this->goods[c].node].LastUpdate() != INVALID_DATE) {
|
||||
Station *st = Station::Get((*lg)[node].Station());
|
||||
st->goods[c].flows.DeleteFlows(this->index);
|
||||
RerouteCargo(st, c, this->index, st->index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user