diff options
author | frosch <frosch@openttd.org> | 2013-06-15 15:06:22 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-15 15:06:22 +0000 |
commit | 18ae9c78bc238ec3f51b778226d4769cee030f39 (patch) | |
tree | c6d36b45018632d11cb83988aa65d1c508fc98fc /src/window.cpp | |
parent | bb308c5e30d373272811c0031b13eea46d79dba0 (diff) | |
download | openttd-18ae9c78bc238ec3f51b778226d4769cee030f39.tar.xz |
(svn r25402) -Fix-ish: Prevent copying of BasePool and WindowDesc, since they register in static vectors.
Diffstat (limited to 'src/window.cpp')
-rw-r--r-- | src/window.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp index e4041c319..40b710044 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -106,6 +106,7 @@ WindowDesc::WindowDesc(WindowPosition def_pos, const char *ini_key, int16 def_wi WindowDesc::~WindowDesc() { + _window_descs->Erase(_window_descs->Find(this)); } /** |