Skip to content

Commit

Permalink
fix AreaMap2D.clear
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Oct 20, 2024
1 parent 2fa6b67 commit d7e2eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/AreaMap2D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ namespace util {
auto i = y * sizeX + x;
auto value = firstBuffer[i];
firstBuffer[i] = {};
if (outCallback) {
if (outCallback && value != T {}) {
outCallback(x + offsetX, y + offsetY, value);
}
}
Expand Down

0 comments on commit d7e2eae

Please sign in to comment.