flowerbed

This commit is contained in:
bobbert committed 2026-05-04 20:27:53 +01:00
1 parent a851364814
commit 5fadd8b6e7
1 file changed
+1 -1
+1 -1
View File
@@ -11,7 +11,7 @@ public:
bool rightEmpty = (i == flowerbed.size()-1) || (flowerbed[i+1] != 1);
bool currentEmpty = (flowerbed[i] != 1);
if (leftEmpty == true && leftEmpty == true && currentEmpty == true)
if (leftEmpty == true && rightEmpty == true && currentEmpty == true)
{
flowerbed[i] = 1; y++;
}