mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-06 19:22:20 +00:00
for structural binding variable mistake
This commit is contained in:
@@ -189,8 +189,8 @@ namespace BBM
|
|||||||
}
|
}
|
||||||
if (controllable.bomb && holder.bombCount > 0) {
|
if (controllable.bomb && holder.bombCount > 0) {
|
||||||
auto spawnPos = position.position.round();
|
auto spawnPos = position.position.round();
|
||||||
for (auto &[__, pos, _] : this->_wal.getScene()->view<PositionComponent, BasicBombComponent>()) {
|
for (auto &eachEntity: this->_wal.getScene()->view<PositionComponent, BasicBombComponent>()) {
|
||||||
if (pos.position == spawnPos)
|
if (eachEntity.get<PositionComponent>().position == spawnPos)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
holder.bombCount--;
|
holder.bombCount--;
|
||||||
|
|||||||
Reference in New Issue
Block a user