diff --git a/src/script/api/script_league.cpp b/src/script/api/script_league.cpp index 928c9e2971..3c2cc11c98 100644 --- a/src/script/api/script_league.cpp +++ b/src/script/api/script_league.cpp @@ -49,7 +49,7 @@ return ::LeagueTableElement::IsValidID(element_id); } -/* static */ ScriptLeagueTable::LeagueTableElementID ScriptLeagueTable::NewElement(ScriptLeagueTable::LeagueTableID table, int64 rating, ScriptCompany::CompanyID company, Text *text, Text *score, LinkType link_type, uint32 link_target) +/* static */ ScriptLeagueTable::LeagueTableElementID ScriptLeagueTable::NewElement(ScriptLeagueTable::LeagueTableID table, SQInteger rating, ScriptCompany::CompanyID company, Text *text, Text *score, LinkType link_type, LinkTargetID link_target) { CCountedPtr text_counter(text); CCountedPtr score_counter(score); @@ -98,7 +98,7 @@ return ScriptObject::Command::Do(element, c, encoded_text, (::LinkType)link_type, (::LinkTargetID)link_target); } -/* static */ bool ScriptLeagueTable::UpdateElementScore(LeagueTableElementID element, int64 rating, Text *score) +/* static */ bool ScriptLeagueTable::UpdateElementScore(LeagueTableElementID element, SQInteger rating, Text *score) { CCountedPtr score_counter(score); diff --git a/src/script/api/script_league.hpp b/src/script/api/script_league.hpp index 045408d66b..ab5ff6a27f 100644 --- a/src/script/api/script_league.hpp +++ b/src/script/api/script_league.hpp @@ -92,7 +92,7 @@ public: * @pre score != null && len(score) != 0. * @pre IsValidLink(Link(link_type, link_target)). */ - static LeagueTableElementID NewElement(LeagueTableID table, int64 rating, ScriptCompany::CompanyID company, Text *text, Text *score, LinkType link_type, LinkTargetID link_target); + static LeagueTableElementID NewElement(LeagueTableID table, SQInteger rating, ScriptCompany::CompanyID company, Text *text, Text *score, LinkType link_type, LinkTargetID link_target); /** * Update the attributes of a league table element. @@ -119,7 +119,7 @@ public: * @pre IsValidLeagueTableElement(element). * @pre score != null && len(score) != 0. */ - static bool UpdateElementScore(LeagueTableElementID element, int64 rating, Text *score); + static bool UpdateElementScore(LeagueTableElementID element, SQInteger rating, Text *score); /**