summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
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;
}