mirror of https://github.com/OpenTTD/OpenTTD
(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
parent
f5caf07ee1
commit
9528befe52
|
@ -37,6 +37,7 @@ typedef bool (AIModeProc)();
|
||||||
class AIObject : public SimpleCountedObject {
|
class AIObject : public SimpleCountedObject {
|
||||||
friend void CcAI(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2);
|
friend void CcAI(const CommandCost &result, TileIndex tile, uint32 p1, uint32 p2);
|
||||||
friend class AIInstance;
|
friend class AIInstance;
|
||||||
|
friend class AIController;
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* Executes a raw DoCommand for the AI.
|
* Executes a raw DoCommand for the AI.
|
||||||
|
|
Loading…
Reference in New Issue