diff options
author | rubidium <rubidium@openttd.org> | 2010-01-07 00:09:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-07 00:09:27 +0000 |
commit | 0e404038f27544fe7ebad2127b1651cd471732b6 (patch) | |
tree | 2ff838abb0b51b6374b89c68770e32acb03208cc /src/ai/ai_instance.hpp | |
parent | 1967084bc3800615e6584d9d3115e0109a0e40da (diff) | |
download | openttd-0e404038f27544fe7ebad2127b1651cd471732b6.tar.xz |
(svn r18747) -Codechange: add some constness to the AI code
Diffstat (limited to 'src/ai/ai_instance.hpp')
-rw-r--r-- | src/ai/ai_instance.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp index b2cc2f49c..f0862ea9e 100644 --- a/src/ai/ai_instance.hpp +++ b/src/ai/ai_instance.hpp @@ -70,7 +70,7 @@ public: /** * Let the VM collect any garbage. */ - void CollectGarbage(); + void CollectGarbage() const; /** * Get the storage of this AI. @@ -105,7 +105,7 @@ public: /** * Return the "this AI died" value */ - inline bool IsDead() { return this->is_dead; } + inline bool IsDead() const { return this->is_dead; } /** * Call the AI Save function and save all data in the savegame. |