summaryrefslogtreecommitdiff
path: root/bin/ai/compat_0.7.nut
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ai/compat_0.7.nut')
-rw-r--r--bin/ai/compat_0.7.nut7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/ai/compat_0.7.nut b/bin/ai/compat_0.7.nut
index 98c03c673..86ab06bba 100644
--- a/bin/ai/compat_0.7.nut
+++ b/bin/ai/compat_0.7.nut
@@ -374,3 +374,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);
+}