Skip to content

Commit 2362019

Browse files
Merge pull request #144 from ethangreen-dev/fix-logging
fix: bad log prints due to weird stack positioning
2 parents 4a6533e + 608ecff commit 2362019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/lovely-core/src/sys.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ pub unsafe extern "C" fn override_print(state: *mut LuaState) -> isize {
138138
let arg_str = String::from_utf8_lossy(str_buf).to_string();
139139

140140
out.push_front(arg_str);
141-
lua_settop(state, -(1) - 1);
141+
lua_settop(state, -3);
142142
}
143143

144144
let msg = out.into_iter().join("\t");

0 commit comments

Comments
 (0)