diff options
author | frosch <frosch@openttd.org> | 2015-10-30 17:23:16 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-10-30 17:23:16 +0000 |
commit | 44d1fc42530a304e501e4f41ff0c26bf19971e6a (patch) | |
tree | 321494b2a6ebe132fd06f989890aa7b4904dc4de /src/window.cpp | |
parent | c0a301ae606cc877a0092e8fef6b14e53e46d4fc (diff) | |
download | openttd-44d1fc42530a304e501e4f41ff0c26bf19971e6a.tar.xz |
(svn r27425) -Fix [FS#5842]: Crash when switching to or taking over companies, when an order window of a vehicle of the new company was opened. Now close those windows.
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 18e8f3588..1fce1f3a8 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1207,6 +1207,7 @@ void ChangeWindowOwner(Owner old_owner, Owner new_owner) case WC_BUY_COMPANY: case WC_COMPANY: case WC_COMPANY_INFRASTRUCTURE: + case WC_VEHICLE_ORDERS: // Changing owner would also require changing WindowDesc, which is not possible; however keeping the old one crashes because of missing widgets etc.. See ShowOrdersWindow(). continue; default: |