summaryrefslogtreecommitdiff
path: root/src/station.cpp
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-06-09 12:49:47 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-06-09 12:49:47 +0000
commitdb671ffb8673c5088749663e64713d9b852ec1e5 (patch)
tree132d0af53b5101417f0ddd01feedc703d8d614a9 /src/station.cpp
parentc8f068d979251fb6963a56e3c0f9dac5b9897c72 (diff)
downloadopenttd-db671ffb8673c5088749663e64713d9b852ec1e5.tar.xz
(svn r25346) -Codechange: Glue between stations and flow stats
Diffstat (limited to 'src/station.cpp')
-rw-r--r--src/station.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp
index da5f09025..9f078a1a2 100644
--- a/src/station.cpp
+++ b/src/station.cpp
@@ -97,6 +97,11 @@ Station::~Station()
delete lg;
}
}
+ Station *st;
+ FOR_ALL_STATIONS(st) {
+ GoodsEntry *ge = &st->goods[c];
+ ge->flows.DeleteFlows(this->index);
+ }
}
Vehicle *v;