浏览代码

Fix untyped dictionary .NET debug visualization showing keys as values

Juan Pablo Arce 11 月之前
父节点
当前提交
c41601fa9c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs

+ 1 - 1
modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs

@@ -174,7 +174,7 @@ namespace Godot.Collections
             var keys = Array.CreateTakingOwnershipOfDisposableValue(keysArray);
 
             godot_array valuesArray;
-            NativeFuncs.godotsharp_dictionary_keys(ref self, out valuesArray);
+            NativeFuncs.godotsharp_dictionary_values(ref self, out valuesArray);
             var values = Array.CreateTakingOwnershipOfDisposableValue(valuesArray);
 
             int count = NativeFuncs.godotsharp_dictionary_count(ref self);