add AreaMap2D tests

This commit is contained in:
MihailRis
2024-09-10 22:19:54 +03:00
parent 6fdea11e2e
commit ab110ab8bf
3 changed files with 90 additions and 10 deletions
+4 -1
View File
@@ -104,9 +104,12 @@ namespace util {
return false;
}
auto& element = firstBuffer[ly * sizeX + lx];
if (!element) {
if (value && !element) {
valuesCount++;
}
if (element && !value) {
valuesCount--;
}
element = std::move(value);
return true;
}