Skip to content

Commit 74db633

Browse files
committed
fix: object json dumper
1 parent f709715 commit 74db633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UE4SS/include/GUI/GUI.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ namespace RC::GUI
299299
template <typename CodeToTry>
300300
auto TRY(CodeToTry code_to_try)
301301
{
302-
DebuggingGUI::execute_at_end_of_frame([&] {
302+
DebuggingGUI::execute_at_end_of_frame([code_to_try = std::move(code_to_try)]() mutable {
303303
code_to_try();
304304
});
305305
}

0 commit comments

Comments
 (0)