From f79668c9ca2fdbf15aea2cdf1f5f823efc5b615f Mon Sep 17 00:00:00 2001 From: Paul Date: Thu, 7 Nov 2024 10:58:52 -0500 Subject: [PATCH] Fix a delete-zone-playing-voice crash (#1447) I actually had a 'TODO repack zones' in teh code, so replace that with a call to the repack zone weak ref operator on delete. Closes #1445 --- src/engine/group.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/group.h b/src/engine/group.h index 8553cbb3..64d0e0e8 100644 --- a/src/engine/group.h +++ b/src/engine/group.h @@ -166,8 +166,9 @@ struct Group : MoveableOnly, auto res = std::move(zones[idx]); zones.erase(zones.begin() + idx); - // REPACK WEAK REFS TODO res->parentGroup = nullptr; + + postZoneTraversalRemoveHandler(); return res; }