diff --git a/src/util/AreaMap2D.hpp b/src/util/AreaMap2D.hpp index a14a0a5f..8eb48f9b 100644 --- a/src/util/AreaMap2D.hpp +++ b/src/util/AreaMap2D.hpp @@ -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); } }