(svn r12514) [NoAI] -Fix: 'const <integral> Function()' make absolutely no sense. noai
authorrubidium
Mon, 31 Mar 2008 15:29:57 +0000
branchnoai
changeset 9847 b89e6adc18d4
parent 9846 6dcf51a0cf7c
child 9848 b4c0116b6b0a
(svn r12514) [NoAI] -Fix: 'const <integral> Function()' make absolutely no sense.
src/ai/api/ai_object.cpp
src/ai/api/ai_object.hpp
--- 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.