summaryrefslogtreecommitdiff
path: root/src/ai/ai_instance.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-07 00:09:27 +0000
committerrubidium <rubidium@openttd.org>2010-01-07 00:09:27 +0000
commit0e404038f27544fe7ebad2127b1651cd471732b6 (patch)
tree2ff838abb0b51b6374b89c68770e32acb03208cc /src/ai/ai_instance.hpp
parent1967084bc3800615e6584d9d3115e0109a0e40da (diff)
downloadopenttd-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.hpp4
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.