瀏覽代碼

Merge pull request #25614 from QbieShay/issue_25425

Fix generating GDNative API struct for 1.1
Rémi Verschelde 6 年之前
父節點
當前提交
2a0c9faac2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdnative/gdnative_builders.py

+ 1 - 1
modules/gdnative/gdnative_builders.py

@@ -213,7 +213,7 @@ def _build_gdnative_api_struct_source(api):
         'extern const godot_gdnative_core_api_struct api_struct = {',
         '\tGDNATIVE_' + api['core']['type'] + ',',
         '\t{' + str(api['core']['version']['major']) + ', ' + str(api['core']['version']['minor']) + '},',
-        '\tNULL,',
+        '\t(const godot_gdnative_api_struct *)&api_1_1,',
         '\t' + str(len(api['extensions'])) + ',',
         '\tgdnative_extensions_pointers,',
     ]