summaryrefslogtreecommitdiff
path: root/src/ai/api/squirrel_export.awk
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-08-19 14:54:52 +0000
committeryexo <yexo@openttd.org>2009-08-19 14:54:52 +0000
commit5a863925ee6c1ba78ec1ca59e73cebe2840d4345 (patch)
tree78df47d24a73a7c6cc78db1b84e2116d22c6b5c7 /src/ai/api/squirrel_export.awk
parent4423000225364b880abd7f793d772bf51bdb2d87 (diff)
downloadopenttd-5a863925ee6c1ba78ec1ca59e73cebe2840d4345.tar.xz
(svn r17221) -Change [NoAI] [FS#3101]: when the API requests a string as parameter allow every squirrel type and convert to a string
Diffstat (limited to 'src/ai/api/squirrel_export.awk')
-rw-r--r--src/ai/api/squirrel_export.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/squirrel_export.awk b/src/ai/api/squirrel_export.awk
index 37b1cdfa1..b3b7b83ea 100644
--- a/src/ai/api/squirrel_export.awk
+++ b/src/ai/api/squirrel_export.awk
@@ -375,7 +375,7 @@ BEGIN {
sub("^[ ]*", "", params[len])
if (match(params[len], "\\*") || match(params[len], "&")) {
if (match(params[len], "^char")) {
- types = types "s"
+ types = types "."
} else if (match(params[len], "^void")) {
types = types "p"
} else if (match(params[len], "^Array")) {