Skip to content

Commit e96384c

Browse files
committed
evaluator: Fixed destruction order again
1 parent 3884172 commit e96384c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/include/pl/core/evaluator.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,9 @@ namespace pl::core {
497497
std::map<u64, api::Section> m_sections;
498498
u64 m_sectionId = 0;
499499

500-
std::vector<std::shared_ptr<ptrn::Pattern>> m_patterns;
501-
std::vector<std::unique_ptr<Scope>> m_scopes;
502500
std::map<std::string, std::set<ptrn::Pattern*>> m_attributedPatterns;
501+
std::vector<std::unique_ptr<Scope>> m_scopes;
502+
std::vector<std::shared_ptr<ptrn::Pattern>> m_patterns;
503503

504504
std::unordered_map <std::string, api::Function> m_customFunctions;
505505
std::unordered_map <std::string, api::Function> m_builtinFunctions;

0 commit comments

Comments
 (0)