Codechange: Use correct type for linkgraph company mask.

This commit is contained in:
Peter Nelson
2023-04-07 10:12:29 +01:00
committed by PeterN
parent 65e0b0dcb7
commit 5199881a8d
4 changed files with 9 additions and 9 deletions

View File

@@ -151,9 +151,9 @@ protected:
* the _local_company. Spectators get to see all companies' links.
* @return Company mask.
*/
inline uint32 GetOverlayCompanyMask() const
inline CompanyMask GetOverlayCompanyMask() const
{
return Company::IsValidID(_local_company) ? 1U << _local_company : 0xffffffff;
return Company::IsValidID(_local_company) ? 1U << _local_company : MAX_UVALUE(CompanyMask);
}
void RebuildColourIndexIfNecessary();