diff --git a/sources/System/BombHolder/BombHolderSystem.cpp b/sources/System/BombHolder/BombHolderSystem.cpp index 96953023..f2a2b398 100644 --- a/sources/System/BombHolder/BombHolderSystem.cpp +++ b/sources/System/BombHolder/BombHolderSystem.cpp @@ -189,8 +189,8 @@ namespace BBM } if (controllable.bomb && holder.bombCount > 0) { auto spawnPos = position.position.round(); - for (auto &[__, pos, _] : this->_wal.getScene()->view()) { - if (pos.position == spawnPos) + for (auto &eachEntity: this->_wal.getScene()->view()) { + if (eachEntity.get().position == spawnPos) return; } holder.bombCount--;