Skip to content

Commit d1fe533

Browse files
committed
fix(DaedalusScript): clang compile error
1 parent c11125b commit d1fe533

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/DaedalusScript.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ class ZkTransientInstance final : public zenkit::DaedalusTransientInstance {
4949
}
5050

5151
[[nodiscard]] const std::string& get_string(const zenkit::DaedalusSymbol& sym, uint16_t index) const override {
52-
return _m_get_string(_m_ctx, const_cast<zenkit::DaedalusSymbol*>(&sym), index);
52+
// TODO: Kinda weird but should work.
53+
static std::string tmp = "";
54+
tmp = _m_get_string(_m_ctx, const_cast<zenkit::DaedalusSymbol*>(&sym), index);
55+
return tmp;
5356
}
5457
};
5558

0 commit comments

Comments
 (0)