diff options
author | smatz <smatz@openttd.org> | 2009-06-10 22:05:01 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-06-10 22:05:01 +0000 |
commit | bea3fe2b8b2352d471149a4c914f93c58aa11b83 (patch) | |
tree | 69bd9a4b24333a7da3f2f3d11af4aafff5c92583 /src/ai/ai_instance.cpp | |
parent | bc7e9514d247581e085b80a71dabbd6e635e5ded (diff) | |
download | openttd-bea3fe2b8b2352d471149a4c914f93c58aa11b83.tar.xz |
(svn r16559) -Codechange: introduce Company::IsValidAiID() and Company::IsValidHumanID(), don't use IsHumanCompany() where possible
Diffstat (limited to 'src/ai/ai_instance.cpp')
-rw-r--r-- | src/ai/ai_instance.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 6d264abea..8c70cf177 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -363,7 +363,7 @@ void AIInstance::CollectGarbage() /* static */ AIStorage *AIInstance::GetStorage() { - assert(Company::IsValidID(_current_company) && !IsHumanCompany(_current_company)); + assert(Company::IsValidAiID(_current_company)); return Company::Get(_current_company)->ai_instance->storage; } |