changeset 18164:3969a91272fd draft

(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
author truebrain <truebrain@openttd.org>
date Tue, 04 Oct 2011 15:21:07 +0000
parents c8286c860ce6
children 8606ebe52fac
files src/ai/api/ai_object.hpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ai/api/ai_object.hpp
+++ b/src/ai/api/ai_object.hpp
@@ -37,6 +37,7 @@
 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.