summaryrefslogtreecommitdiff
path: root/src/company_cmd.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-01-02 12:41:24 +0000
committeryexo <yexo@openttd.org>2011-01-02 12:41:24 +0000
commitb22945350f6a574e8cb8c5ec30c032c01a107cba (patch)
treebba4330ac54f02fed0f6fa50fc7159575c5860cb /src/company_cmd.cpp
parent3ca65ab7b3ee218fc1bfbeb72df16b3a42fe0287 (diff)
downloadopenttd-b22945350f6a574e8cb8c5ec30c032c01a107cba.tar.xz
(svn r21696) -Feature [FS#4362]: allow changing the AI configuration in the scenario editor / in game
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r--src/company_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp
index 40a603916..b39bed5fc 100644
--- a/src/company_cmd.cpp
+++ b/src/company_cmd.cpp
@@ -896,6 +896,10 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
default: return CMD_ERROR;
}
+ InvalidateWindowClassesData(WC_GAME_OPTIONS);
+ InvalidateWindowClassesData(WC_AI_SETTINGS);
+ InvalidateWindowClassesData(WC_AI_LIST);
+
return CommandCost();
}