From 5dc377244d74cfffffc98830cbfd009d6cb9cffa Mon Sep 17 00:00:00 2001 From: PeterN Date: Fri, 15 Feb 2019 19:15:53 +0000 Subject: Fix #7224: AI could no longer create groups. (#7233) --- src/script/api/script_group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/api') diff --git a/src/script/api/script_group.cpp b/src/script/api/script_group.cpp index 1e8d6d774..cf8dd51a8 100644 --- a/src/script/api/script_group.cpp +++ b/src/script/api/script_group.cpp @@ -29,7 +29,7 @@ /* static */ ScriptGroup::GroupID ScriptGroup::CreateGroup(ScriptVehicle::VehicleType vehicle_type) { - if (!ScriptObject::DoCommand(0, (::VehicleType)vehicle_type, 0, CMD_CREATE_GROUP, NULL, &ScriptInstance::DoCommandReturnGroupID)) return GROUP_INVALID; + if (!ScriptObject::DoCommand(0, (::VehicleType)vehicle_type, INVALID_GROUP, CMD_CREATE_GROUP, NULL, &ScriptInstance::DoCommandReturnGroupID)) return GROUP_INVALID; /* In case of test-mode, we return GroupID 0 */ return (ScriptGroup::GroupID)0; -- cgit v1.2.3-70-g09d2