(svn r12514) [NoAI] -Fix: 'const <integral> Function()' make absolutely no sense.
--- a/src/ai/api/ai_object.cpp Mon Mar 31 13:51:57 2008 +0000
+++ b/src/ai/api/ai_object.cpp Mon Mar 31 15:29:57 2008 +0000
@@ -59,7 +59,7 @@
AIObject::GetDoCommandStruct(_current_player)->last_error = last_error;
}
-const StringID AIObject::GetLastError()
+StringID AIObject::GetLastError()
{
return AIObject::GetDoCommandStruct(_current_player)->last_error;
}
--- a/src/ai/api/ai_object.hpp Mon Mar 31 13:51:57 2008 +0000
+++ b/src/ai/api/ai_object.hpp Mon Mar 31 15:29:57 2008 +0000
@@ -81,7 +81,7 @@
/**
* Get the DoCommand last error.
*/
- static const StringID GetLastError();
+ static StringID GetLastError();
/**
* Set the current mode of your AI to this proc.