summaryrefslogtreecommitdiff
path: root/bin/ai/compat_1.6.nut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ai/compat_1.6.nut')
-rw-r--r--bin/ai/compat_1.6.nut7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ai/compat_1.6.nut b/bin/ai/compat_1.6.nut
index 5242821d1..e57a3cb98 100644
--- a/bin/ai/compat_1.6.nut
+++ b/bin/ai/compat_1.6.nut
@@ -15,3 +15,10 @@ AIBridge.GetName <- function(bridge_id)
{
return AIBridge._GetName(bridge_id, AIVehicle.VT_RAIL);
}
+
+/* 1.9 adds parent_group_id to CreateGroup function */
+AIGroup._CreateGroup <- AIGroup.CreateGroup;
+AIGroup.CreateGroup <- function(vehicle_type)
+{
+ return AIGroup._CreateGroup(vehicle_type, AIGroup.GROUP_INVALID);
+}