From 0cac0053e3f742ebdb1226c8358beae35d784df3 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sun, 6 Aug 2023 22:04:44 +0200 Subject: [PATCH] fixed native cc call to getMethods --- src/kernel/peripherals/Peripherals.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kernel/peripherals/Peripherals.hx b/src/kernel/peripherals/Peripherals.hx index 7526691..bee3f03 100644 --- a/src/kernel/peripherals/Peripherals.hx +++ b/src/kernel/peripherals/Peripherals.hx @@ -50,11 +50,11 @@ class Peripheral { } var types = getTypes(addr); - var methodsMap = cc.Peripheral.getMethods(addr).toArray(); + var methodsMap = cc.Peripheral.getMethods(addr).toMap(); var methods:Array = []; - for (method in methodsMap) { - methods.push(method); + for (k => v in methodsMap) { + methods.push(k); } return {