diff options
author | fonsinchen <fonsinchen@openttd.org> | 2014-02-16 16:25:18 +0000 |
---|---|---|
committer | fonsinchen <fonsinchen@openttd.org> | 2014-02-16 16:25:18 +0000 |
commit | 46590e112e6c8f11ccdc22cdd5055151c9b03e09 (patch) | |
tree | 7849df3645c5a08d80614aa336acb011f968f52a /src/station.cpp | |
parent | dc0f89b7e9bae8486771088e88b574c567b0dddc (diff) | |
download | openttd-46590e112e6c8f11ccdc22cdd5055151c9b03e09.tar.xz |
(svn r26343) -Fix: Rewrite SmallStack so that it doesn't use a pool and is reentrant.
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/station.cpp b/src/station.cpp index 30723cc7b..49554aaef 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -34,8 +34,7 @@ StationPool _station_pool("Station"); INSTANTIATE_POOL_METHODS(Station) typedef StationIDStack::SmallStackPool StationIDStackPool; -template<> StationIDStackPool StationIDStack::_pool("StationIDStack"); -INSTANTIATE_POOL_METHODS(StationIDStack) +template<> StationIDStackPool StationIDStack::_pool = StationIDStackPool(); BaseStation::~BaseStation() { |