Skip to content

Commit

Permalink
Fix a delete-zone-playing-voice crash (#1447)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
baconpaul authored Nov 7, 2024
1 parent c508b76 commit f79668c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/engine/group.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ struct Group : MoveableOnly<Group>,

auto res = std::move(zones[idx]);
zones.erase(zones.begin() + idx);
// REPACK WEAK REFS TODO
res->parentGroup = nullptr;

postZoneTraversalRemoveHandler();
return res;
}

Expand Down

0 comments on commit f79668c

Please sign in to comment.