diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2019-04-22 09:10:04 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-04-29 17:40:22 +0100 |
commit | 5b34c8019f135afd9f20d043a489ab96f286038a (patch) | |
tree | 84b38701d78f2348ad1e54c5cb379fc15bdcfe67 /src/ai/ai_gui.cpp | |
parent | fcf06ba4c43bb9b7ac0b8541377a5240b3e01126 (diff) | |
download | openttd-5b34c8019f135afd9f20d043a489ab96f286038a.tar.xz |
Codechange: Remove Company/OwnerByte types
Diffstat (limited to 'src/ai/ai_gui.cpp')
-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 4932c0f61..91f896904 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -810,7 +810,7 @@ struct AIConfigWindow : public Window { if (_game_mode != GM_NORMAL) { return slot > 0 && slot <= GetGameSettings().difficulty.max_no_competitors; } - if (Company::IsValidID(slot) || slot < 0) return false; + if (Company::IsValidID(slot)) return false; int max_slot = GetGameSettings().difficulty.max_no_competitors; for (CompanyID cid = COMPANY_FIRST; cid < (CompanyID)max_slot && cid < MAX_COMPANIES; cid++) { |