diff options
author | yexo <yexo@openttd.org> | 2009-08-19 14:54:52 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-08-19 14:54:52 +0000 |
commit | 5a863925ee6c1ba78ec1ca59e73cebe2840d4345 (patch) | |
tree | 78df47d24a73a7c6cc78db1b84e2116d22c6b5c7 /src/ai/api/ai_vehicle.hpp.sq | |
parent | 4423000225364b880abd7f793d772bf51bdb2d87 (diff) | |
download | openttd-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_vehicle.hpp.sq')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp.sq | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.hpp.sq b/src/ai/api/ai_vehicle.hpp.sq index 1782204f8..74a3cf023 100644 --- a/src/ai/api/ai_vehicle.hpp.sq +++ b/src/ai/api/ai_vehicle.hpp.sq @@ -102,7 +102,7 @@ void SQAIVehicle_Register(Squirrel *engine) { SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::IsValidVehicle, "IsValidVehicle", 2, ".i"); SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetNumWagons, "GetNumWagons", 2, ".i"); - SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::SetName, "SetName", 3, ".is"); + SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::SetName, "SetName", 3, ".i."); SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetName, "GetName", 2, ".i"); SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetLocation, "GetLocation", 2, ".i"); SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetEngineType, "GetEngineType", 2, ".i"); |