summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_object.cpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-14 18:25:48 +0000
committertruebrain <truebrain@openttd.org>2009-01-14 18:25:48 +0000
commit61093eb2115bf22ca7e417af4e9048f60d2b47af (patch)
tree07d0968f275b6eab29bc1d30ad86c38c981f8f41 /src/ai/api/ai_object.cpp
parenta45b3c4304e840e9fbae300c69984046f59215dc (diff)
downloadopenttd-61093eb2115bf22ca7e417af4e9048f60d2b47af.tar.xz
(svn r15084) -Fix [NoAI] (r15027): by removing the threads for NoAIs, it is no longer possible to use DoCommand (even indirect) in AIAbstractList::Valuator().
Diffstat (limited to 'src/ai/api/ai_object.cpp')
-rw-r--r--src/ai/api/ai_object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_object.cpp b/src/ai/api/ai_object.cpp
index 55ca4dfed..1ae5b4fd0 100644
--- a/src/ai/api/ai_object.cpp
+++ b/src/ai/api/ai_object.cpp
@@ -198,7 +198,7 @@ int AIObject::GetCallbackVariable(int index)
bool AIObject::DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint cmd, const char *text, AISuspendCallbackProc *callback)
{
if (AIObject::GetAllowDoCommand() == false) {
- AILog::Error("You are not allowed to execute any DoCommand (even indirect) in your constructor, Save(), and Load().\n");
+ AILog::Error("You are not allowed to execute any DoCommand (even indirect) in your constructor, Save(), Load(), and any valuator.\n");
return false;
}