From 9528befe5253011d6f7a6bdf20635fd0a657d0e8 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 4 Oct 2011 15:21:07 +0000 Subject: (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 --- src/ai/api/ai_object.hpp | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3-54-g00ecf