aboutsummaryrefslogtreecommitdiff
path: root/src/mapsector.h
diff options
context:
space:
mode:
authorDS <ds.desour@proton.me>2023-03-24 12:34:44 +0100
committerGitHub <noreply@github.com>2023-03-24 12:34:44 +0100
commited632f38547e2a63edb1a5dacbc37f3441cc43b6 (patch)
treeadcec37379068ca4a34a3129d2fd66d74558efa1 /src/mapsector.h
parentf3b198e49008ea3aba568974c8f423fdc801d4a2 (diff)
downloadminetest-ed632f38547e2a63edb1a5dacbc37f3441cc43b6.tar.xz
Safely handle block deletion (#13315)
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Diffstat (limited to 'src/mapsector.h')
-rw-r--r--src/mapsector.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mapsector.h b/src/mapsector.h
index ffd4cdd1d..04b1aa6be 100644
--- a/src/mapsector.h
+++ b/src/mapsector.h
@@ -58,6 +58,9 @@ public:
void deleteBlock(MapBlock *block);
+ // Remove a block from the map and the sector without deleting it
+ void detachBlock(MapBlock *block);
+
void getBlocks(MapBlockVect &dest);
bool empty() const { return m_blocks.empty(); }