summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_group.hpp.sq
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/ai_group.hpp.sq
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/ai_group.hpp.sq')
-rw-r--r--src/ai/api/ai_group.hpp.sq2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_group.hpp.sq b/src/ai/api/ai_group.hpp.sq
index f54b984f5..c6ebdbdbc 100644
--- a/src/ai/api/ai_group.hpp.sq
+++ b/src/ai/api/ai_group.hpp.sq
@@ -29,7 +29,7 @@ void SQAIGroup_Register(Squirrel *engine) {
SQAIGroup.DefSQStaticMethod(engine, &AIGroup::CreateGroup, "CreateGroup", 2, ".i");
SQAIGroup.DefSQStaticMethod(engine, &AIGroup::DeleteGroup, "DeleteGroup", 2, ".i");
SQAIGroup.DefSQStaticMethod(engine, &AIGroup::GetVehicleType, "GetVehicleType", 2, ".i");
- SQAIGroup.DefSQStaticMethod(engine, &AIGroup::SetName, "SetName", 3, ".is");
+ SQAIGroup.DefSQStaticMethod(engine, &AIGroup::SetName, "SetName", 3, ".i.");
SQAIGroup.DefSQStaticMethod(engine, &AIGroup::GetName, "GetName", 2, ".i");
SQAIGroup.DefSQStaticMethod(engine, &AIGroup::EnableAutoReplaceProtection, "EnableAutoReplaceProtection", 3, ".ib");
SQAIGroup.DefSQStaticMethod(engine, &AIGroup::GetAutoReplaceProtection, "GetAutoReplaceProtection", 2, ".i");