diff --git a/sources/Map/Map.cpp b/sources/Map/Map.cpp index ed646dd2..f0333198 100644 --- a/sources/Map/Map.cpp +++ b/sources/Map/Map.cpp @@ -135,7 +135,7 @@ namespace BBM static const std::string unbreakableObj = unbreakableWallPath + objExtension; static const std::string unbreakablePnj = unbreakableWallPath + imageExtension; - for (int i = 0; i < height; i++) { + for (int i = 0; i < height + 1; i++) { scene->addEntity("Bomb stopper") .addComponent(-1, 0, i) .addComponent>(); @@ -143,7 +143,7 @@ namespace BBM .addComponent(width + 1, 0, i) .addComponent>(); } - for (int i = 0; i < width; i++) { + for (int i = 0; i < width + 1; i++) { scene->addEntity("Bomb stopper") .addComponent(i, 0, -1) .addComponent>();