Skip to content

Commit 070caf1

Browse files
committed
Fix Pool*Arrays' __gc methods
1 parent da43f5f commit 070caf1

9 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
patterns like `res://*` are correctly loaded.
1414
- Always try loading active library, so that dynamic loader knows about `lua*`
1515
symbols when loading C modules.
16+
- `Pool*Array`s' `__gc` metamethod
1617

1718

1819
## [0.1.0]

src/godot_pool_byte_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ PoolByteArray = ffi_metatype('godot_pool_byte_array', {
258258
methods.push_back(self, ...)
259259
return self
260260
end,
261-
__gc = godot_pool_byte_array_destroy,
261+
__gc = api.godot_pool_byte_array_destroy,
262262
--- Returns method named `index` or the result of `safe_get`.
263263
-- @function __index
264264
-- @param index

src/godot_pool_color_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ PoolColorArray = ffi_metatype('godot_pool_color_array', {
244244
methods.push_back(self, ...)
245245
return self
246246
end,
247-
__gc = godot_pool_color_array_destroy,
247+
__gc = api.godot_pool_color_array_destroy,
248248
--- Returns method named `index` or the result of `safe_get`.
249249
-- @function __index
250250
-- @param index

src/godot_pool_int_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ PoolIntArray = ffi_metatype('godot_pool_int_array', {
244244
methods.push_back(self, ...)
245245
return self
246246
end,
247-
__gc = godot_pool_int_array_destroy,
247+
__gc = api.godot_pool_int_array_destroy,
248248
--- Returns method named `index` or the result of `safe_get`.
249249
-- @function __index
250250
-- @param index

src/godot_pool_real_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ PoolRealArray = ffi_metatype('godot_pool_real_array', {
244244
methods.push_back(self, ...)
245245
return self
246246
end,
247-
__gc = godot_pool_real_array_destroy,
247+
__gc = api.godot_pool_real_array_destroy,
248248
--- Returns method named `index` or the result of `safe_get`.
249249
-- @function __index
250250
-- @param index

src/godot_pool_string_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ PoolStringArray = ffi_metatype('godot_pool_string_array', {
240240
methods.push_back(self, ...)
241241
return self
242242
end,
243-
__gc = godot_pool_string_array_destroy,
243+
__gc = api.godot_pool_string_array_destroy,
244244
--- Returns method named `index` or the result of `safe_get`.
245245
-- @function __index
246246
-- @param index

src/godot_pool_vector2_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ PoolVector2Array = ffi_metatype('godot_pool_vector2_array', {
244244
methods.push_back(self, ...)
245245
return self
246246
end,
247-
__gc = godot_pool_vector2_array_destroy,
247+
__gc = api.godot_pool_vector2_array_destroy,
248248
--- Returns method named `index` or the result of `safe_get`.
249249
-- @function __index
250250
-- @param index

src/godot_pool_vector3_array.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ PoolVector3Array = ffi_metatype('godot_pool_vector3_array', {
244244
methods.push_back(self, ...)
245245
return self
246246
end,
247-
__gc = godot_pool_vector3_array_destroy,
247+
__gc = api.godot_pool_vector3_array_destroy,
248248
--- Returns method named `index` or the result of `safe_get`.
249249
-- @function __index
250250
-- @param index

src/godot_string.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ local methods = {
7878
end,
7979
--- Returns the bigrams (pairs of consecutive letters) of this string.
8080
-- @function bigrams
81-
-- @treturn PoolStringArray
81+
-- @treturn Array
8282
bigrams = function(self)
8383
return ffi_gc(api.godot_string_bigrams(self), api.godot_array_destroy)
8484
end,

0 commit comments

Comments
 (0)