summaryrefslogtreecommitdiff
path: root/modules/gdnative
diff options
context:
space:
mode:
authorsheepandshepherd <sheepandshepherd@hotmail.com>2017-05-31 23:44:20 +0200
committersheepandshepherd <sheepandshepherd@hotmail.com>2017-05-31 23:44:20 +0200
commit48440138271f0d9e906ebca57972a489ce6e4aff (patch)
treed15842d1504764d19bb50982e585b00753b92f10 /modules/gdnative
parentd82cc20c2a6382697b02eb5c376266e119e8b047 (diff)
Fix GDNative PoolVector typos
Diffstat (limited to 'modules/gdnative')
-rw-r--r--modules/gdnative/godot/godot_pool_arrays.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/gdnative/godot/godot_pool_arrays.cpp b/modules/gdnative/godot/godot_pool_arrays.cpp
index cb0b5d2f11..ff4586ebe7 100644
--- a/modules/gdnative/godot/godot_pool_arrays.cpp
+++ b/modules/gdnative/godot/godot_pool_arrays.cpp
@@ -124,8 +124,8 @@ void GDAPI godot_pool_byte_array_destroy(godot_pool_byte_array *p_pba) {
// int
void GDAPI godot_pool_int_array_new(godot_pool_int_array *p_pba) {
- PoolVector<uint8_t> *pba = (PoolVector<uint8_t> *)p_pba;
- memnew_placement(pba, PoolVector<uint8_t>);
+ PoolVector<godot_int> *pba = (PoolVector<godot_int> *)p_pba;
+ memnew_placement(pba, PoolVector<godot_int>);
}
void GDAPI godot_pool_int_array_new_copy(godot_pool_int_array *p_dest, const godot_pool_int_array *p_src) {
@@ -135,9 +135,9 @@ void GDAPI godot_pool_int_array_new_copy(godot_pool_int_array *p_dest, const god
}
void GDAPI godot_pool_int_array_new_with_array(godot_pool_int_array *p_pba, const godot_array *p_a) {
- PoolVector<uint8_t> *pba = (PoolVector<uint8_t> *)p_pba;
+ PoolVector<godot_int> *pba = (PoolVector<godot_int> *)p_pba;
Array *a = (Array *)p_a;
- memnew_placement(pba, PoolVector<uint8_t>);
+ memnew_placement(pba, PoolVector<godot_int>);
pba->resize(a->size());
for (size_t i = 0; i < a->size(); i++) {
@@ -203,8 +203,8 @@ void GDAPI godot_pool_int_array_destroy(godot_pool_int_array *p_pba) {
// real
void GDAPI godot_pool_real_array_new(godot_pool_real_array *p_pba) {
- PoolVector<uint8_t> *pba = (PoolVector<uint8_t> *)p_pba;
- memnew_placement(pba, PoolVector<uint8_t>);
+ PoolVector<godot_real> *pba = (PoolVector<godot_real> *)p_pba;
+ memnew_placement(pba, PoolVector<godot_real>);
}
void GDAPI godot_pool_real_array_new_copy(godot_pool_real_array *p_dest, const godot_pool_real_array *p_src) {
@@ -214,9 +214,9 @@ void GDAPI godot_pool_real_array_new_copy(godot_pool_real_array *p_dest, const g
}
void GDAPI godot_pool_real_array_new_with_array(godot_pool_real_array *p_pba, const godot_array *p_a) {
- PoolVector<uint8_t> *pba = (PoolVector<uint8_t> *)p_pba;
+ PoolVector<godot_real> *pba = (PoolVector<godot_real> *)p_pba;
Array *a = (Array *)p_a;
- memnew_placement(pba, PoolVector<uint8_t>);
+ memnew_placement(pba, PoolVector<godot_real>);
pba->resize(a->size());
for (size_t i = 0; i < a->size(); i++) {