summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_object.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-10-04 15:21:07 +0000
committertruebrain <truebrain@openttd.org>2011-10-04 15:21:07 +0000
commit9528befe5253011d6f7a6bdf20635fd0a657d0e8 (patch)
treed82bcb96106b2c1a415676200e4e4f034047c4ab /src/ai/api/ai_object.hpp
parentf5caf07ee103dd10e134fc2a736e7716fdfe1bc8 (diff)
downloadopenttd-9528befe5253011d6f7a6bdf20635fd0a657d0e8.tar.xz
(svn r22989) -Fix: AIController uses protected members of AIObject, so make them friends (instead of doing it implicit via AIInstance). This fixes all compile errors with clang-2.9
Diffstat (limited to 'src/ai/api/ai_object.hpp')
-rw-r--r--src/ai/api/ai_object.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_object.hpp b/src/ai/api/ai_object.hpp
index e928bef23..9f7d08864 100644
--- a/src/ai/api/ai_object.hpp
+++ b/src/ai/api/ai_object.hpp
@@ -37,6 +37,7 @@ typedef bool (AIModeProc)();
class AIObject : public SimpleCountedObject {
friend void CcAI(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2);
friend class AIInstance;
+friend class AIController;
protected:
/**
* Executes a raw DoCommand for the AI.