From d7e2eaed7caea17d70eb74dc4e52c6b5d3ad2420 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sun, 20 Oct 2024 08:13:13 +0300 Subject: [PATCH] fix AreaMap2D.clear --- src/util/AreaMap2D.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/AreaMap2D.hpp b/src/util/AreaMap2D.hpp index a14a0a5f3..8eb48f9bd 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); } }