Codechange: Use SQInteger for generic numbers in script_news

This commit is contained in:
glx22
2023-03-04 17:45:03 +01:00
committed by Loïc Guilloux
parent f22903ab14
commit 0293fd41e5
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
#include "../../safeguards.h" #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<Text> counter(text); CCountedPtr<Text> counter(text);

View File

@@ -63,7 +63,7 @@ public:
* @pre company == COMPANY_INVALID || ResolveCompanyID(company) != COMPANY_INVALID. * @pre company == COMPANY_INVALID || ResolveCompanyID(company) != COMPANY_INVALID.
* @pre The \a reference condition must be fulfilled. * @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 */ #endif /* SCRIPT_NEWS_HPP */