Skip to content

Commit ec0374a

Browse files
committed
fix: fix BuiltinCommands
1 parent cf5bb5e commit ec0374a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/legacy/main/BuiltinCommands.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ void RegisterDebugCommand() {
6262
command.overload<EngineDebugCommand>().optional("eval").execute(
6363
[](CommandOrigin const&, CommandOutput& output, EngineDebugCommand const& param) {
6464
auto& logger = lse::LegacyScriptEngine::getInstance().getSelf().getLogger();
65-
if (!param.eval.getText().empty()) {
65+
if (!param.eval.mText.empty()) {
6666
EngineScope enter(DebugEngine);
6767
try {
68-
auto result = DebugEngine->eval(param.eval.getText());
68+
auto result = DebugEngine->eval(param.eval.mText);
6969
std::ostringstream sout;
7070
PrintValue(sout, result);
7171
output.success(sout.str());

0 commit comments

Comments
 (0)