From b8348d7e1747d3847dc7333ecaffd1167c6f0b54 Mon Sep 17 00:00:00 2001 From: glx22 Date: Wed, 19 Feb 2025 14:59:54 +0100 Subject: [PATCH] Fix be01c2cd2a: [Scripts] Broken ScriptGroup::SetName compat wrapper --- bin/ai/compat_14.nut | 2 +- bin/game/compat_14.nut | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ai/compat_14.nut b/bin/ai/compat_14.nut index 586bf51c18..6983e0a3b4 100644 --- a/bin/ai/compat_14.nut +++ b/bin/ai/compat_14.nut @@ -26,7 +26,7 @@ AICompany._SetPresidentName <- AICompany.SetPresidentName; AICompany.SetPresidentName <- function(name) { return AICompany._SetPresidentName(AICompat14.Text(name)); } AIGroup._SetName <- AIGroup.SetName; -AIGroup.SetName <- function(name) { return AIGroup._SetName(AICompat14.Text(name)); } +AIGroup.SetName <- function(id, name) { return AIGroup._SetName(id, AICompat14.Text(name)); } AISign._BuildSign <- AISign.BuildSign; AISign.BuildSign <- function(id, name) { return AISign._BuildSign(id, AICompat14.Text(name)); } diff --git a/bin/game/compat_14.nut b/bin/game/compat_14.nut index 49030e247a..f2d632d3c7 100644 --- a/bin/game/compat_14.nut +++ b/bin/game/compat_14.nut @@ -38,7 +38,7 @@ GSGoal._QuestionClient <- GSGoal.QuestionClient; GSGoal.QuestionClient <- function(id, target, is_client, question, type, buttons) { return GSGoal._QuestionClient(id, target, is_client, GSCompat14.Text(question), type, buttons); } GSGroup._SetName <- GSGroup.SetName; -GSGroup.SetName <- function(name) { return GSGroup._SetName(GSCompat14.Text(name)); } +GSGroup.SetName <- function(id, name) { return GSGroup._SetName(id, GSCompat14.Text(name)); } GSIndustry._SetText <- GSIndustry.SetText; GSIndustry.SetText <- function(id, text) { return GSIndustry._SetText(id, GSCompat14.Text(text)); }