Skip to content

Commit

Permalink
fix(DaedalusScript): only report const instances in enumerate_ins…
Browse files Browse the repository at this point in the history
…tances_by_class_name`
  • Loading branch information
lmichaelis committed Nov 11, 2023
1 parent 59d7930 commit cd8092c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DaedalusScript.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ namespace zenkit {
for (auto& sym : _m_symbols) {
if (sym.type() == DaedalusDataType::PROTOTYPE && sym.parent() == cls->index()) {
prototypes.push_back(sym.index());
} else if (sym.type() == DaedalusDataType::INSTANCE &&
} else if (sym.type() == DaedalusDataType::INSTANCE && sym.is_const() &&
(std::find(prototypes.begin(), prototypes.end(), sym.parent()) != prototypes.end() ||
sym.parent() == cls->index())) {
callback(sym);
Expand Down

0 comments on commit cd8092c

Please sign in to comment.