1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-18 01:42:38 +01:00

Codechange: Use EnumBitSet for pool types

This commit is contained in:
Rubidium
2025-02-01 13:30:03 +01:00
committed by rubidium42
parent c4c5028862
commit 89d0a688a9
9 changed files with 20 additions and 19 deletions

View File

@@ -27,9 +27,9 @@
* Clean all pools of given type.
* @param pt pool types to clean.
*/
/* static */ void PoolBase::Clean(PoolType pt)
/* static */ void PoolBase::Clean(PoolTypes pt)
{
for (PoolBase *pool : *PoolBase::GetPools()) {
if (pool->type & pt) pool->CleanPool();
if (pt.Test(pool->type)) pool->CleanPool();
}
}