summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-12 08:37:12 +0000
committerrubidium <rubidium@openttd.org>2011-11-12 08:37:12 +0000
commitc9a7f572ecb902304efe0c864f565e703c8e98c8 (patch)
tree24ade13ff9268018a5870d8dbeab3abbb223a0ff /src/ai
parent4f87d2e88c4b42f4ae4a5c7956f2287740ef174b (diff)
downloadopenttd-c9a7f572ecb902304efe0c864f565e703c8e98c8.tar.xz
(svn r23195) -Codechange: if we really need to cast away constness, use const_cast
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/ai_instance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp
index 1cae588f7..dbc8970b1 100644
--- a/src/ai/ai_instance.cpp
+++ b/src/ai/ai_instance.cpp
@@ -511,7 +511,7 @@ static const uint AISAVE_MAX_DEPTH = 25; ///< The maximum recursive depth for it
if (!test) {
_ai_sl_byte = (byte)len;
SlObject(NULL, _ai_byte);
- SlArray((void*)buf, len, SLE_CHAR);
+ SlArray(const_cast<char *>(buf), len, SLE_CHAR);
}
return true;
}