Fix crash when switching macros after deleting one containing temp refs

This commit is contained in:
WarmUpTill
2025-10-23 20:56:05 +02:00
committed by WarmUpTill
parent 8f3b868fd9
commit b1a5db0c9c
2 changed files with 20 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ private:
enum class SegmentType { NONE, CONDITION, ACTION, ELSEACTION };
SegmentType GetType() const;
int GetIdx() const;
void PostLoad(int idx, SegmentType, Macro *);
void PostLoad(int idx, SegmentType, const std::weak_ptr<Macro> &);
std::string _id = "";
std::weak_ptr<MacroSegment> _segment;