diff options
author | rubidium <rubidium@openttd.org> | 2011-11-12 08:37:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-11-12 08:37:12 +0000 |
commit | c9a7f572ecb902304efe0c864f565e703c8e98c8 (patch) | |
tree | 24ade13ff9268018a5870d8dbeab3abbb223a0ff /src/ai | |
parent | 4f87d2e88c4b42f4ae4a5c7956f2287740ef174b (diff) | |
download | openttd-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.cpp | 2 |
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; } |