From 0293fd41e585c75970a46f502d08220fd11315a2 Mon Sep 17 00:00:00 2001 From: glx22 Date: Sat, 4 Mar 2023 17:45:03 +0100 Subject: [PATCH] Codechange: Use SQInteger for generic numbers in script_news --- src/script/api/script_news.cpp | 2 +- src/script/api/script_news.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/script/api/script_news.cpp b/src/script/api/script_news.cpp index 0939c8a3b4..290810eb69 100644 --- a/src/script/api/script_news.cpp +++ b/src/script/api/script_news.cpp @@ -20,7 +20,7 @@ #include "../../safeguards.h" -/* static */ bool ScriptNews::Create(NewsType type, Text *text, ScriptCompany::CompanyID company, NewsReferenceType ref_type, uint32 reference) +/* static */ bool ScriptNews::Create(NewsType type, Text *text, ScriptCompany::CompanyID company, NewsReferenceType ref_type, SQInteger reference) { CCountedPtr counter(text); diff --git a/src/script/api/script_news.hpp b/src/script/api/script_news.hpp index 630c068c9a..4518a56047 100644 --- a/src/script/api/script_news.hpp +++ b/src/script/api/script_news.hpp @@ -63,7 +63,7 @@ public: * @pre company == COMPANY_INVALID || ResolveCompanyID(company) != COMPANY_INVALID. * @pre The \a reference condition must be fulfilled. */ - static bool Create(NewsType type, Text *text, ScriptCompany::CompanyID company, NewsReferenceType ref_type, uint32 reference); + static bool Create(NewsType type, Text *text, ScriptCompany::CompanyID company, NewsReferenceType ref_type, SQInteger reference); }; #endif /* SCRIPT_NEWS_HPP */