mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Fix usage of std::bitset
This commit is contained in:
parent
9754e72063
commit
3bbfee0e1c
@ -32,9 +32,7 @@ void BattleHexArray::insert(const BattleHexArray & other) noexcept
|
||||
|
||||
void BattleHexArray::clear() noexcept
|
||||
{
|
||||
for(const auto & hex : internalStorage)
|
||||
presenceFlags[hex.toInt()] = false;
|
||||
|
||||
presenceFlags = {};
|
||||
internalStorage.clear();
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ public:
|
||||
// reinit presence flags
|
||||
presenceFlags = {};
|
||||
for(const auto & hex : internalStorage)
|
||||
presenceFlags.set(hex.toInt()) = true;
|
||||
presenceFlags.set(hex.toInt());
|
||||
}
|
||||
|
||||
void shuffle(vstd::RNG & rand)
|
||||
@ -239,7 +239,7 @@ public:
|
||||
if(!s.saving)
|
||||
{
|
||||
for(const auto & hex : internalStorage)
|
||||
presenceFlags.set(hex.toInt()) = true;
|
||||
presenceFlags.set(hex.toInt());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user