File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ pub unsafe extern "C" fn default_get_virtual<T: UserClass>(
188
188
189
189
pub unsafe extern "C" fn to_string < T : cap:: GodotToString > (
190
190
instance : sys:: GDExtensionClassInstancePtr ,
191
- _is_valid : * mut sys:: GDExtensionBool ,
191
+ is_valid : * mut sys:: GDExtensionBool ,
192
192
out_string : sys:: GDExtensionStringPtr ,
193
193
) {
194
194
// Note: to_string currently always succeeds, as it is only provided for classes that have a working implementation.
@@ -200,6 +200,7 @@ pub unsafe extern "C" fn to_string<T: cap::GodotToString>(
200
200
201
201
// Transfer ownership to Godot
202
202
string. move_into_string_ptr ( out_string) ;
203
+ * is_valid = sys:: conv:: SYS_TRUE ;
203
204
}
204
205
205
206
#[ cfg( before_api = "4.2" ) ]
You can’t perform that action at this time.
0 commit comments