diff options
author | glx22 <glx22@users.noreply.github.com> | 2019-04-05 15:11:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-05 15:11:52 +0200 |
commit | a1e492d0d8970217800ebd78d328c9ddf0f13a31 (patch) | |
tree | c4135eccb649a412c2113f45b6306d95e9e08341 /src/ai | |
parent | fb6e31ca43b10b40fcaf1db0596dfaa48a1ecf20 (diff) | |
download | openttd-a1e492d0d8970217800ebd78d328c9ddf0f13a31.tar.xz |
Fix #7439: don't overwrite CompanyRemoveReason with ClientID (#7465)
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 8b00de988..2730070c3 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1282,7 +1282,7 @@ struct AIDebugWindow : public Window { case WID_AID_RELOAD_TOGGLE: if (ai_debug_company == OWNER_DEITY) break; /* First kill the company of the AI, then start a new one. This should start the current AI again */ - DoCommandP(0, CCA_DELETE | ai_debug_company << 16, CRR_MANUAL, CMD_COMPANY_CTRL); + DoCommandP(0, CCA_DELETE | ai_debug_company << 16 | CRR_MANUAL << 24, 0, CMD_COMPANY_CTRL); DoCommandP(0, CCA_NEW_AI | ai_debug_company << 16, 0, CMD_COMPANY_CTRL); break; |