From b58e261d41ba534584f2efc22240624a304b9d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 17 May 2016 14:59:48 +0200 Subject: [PATCH] GDScript: Fix method info for is_nan and is_inf As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented --- modules/gdscript/gd_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index 96fb9d81a74..1c05a71d01b 100644 --- a/modules/gdscript/gd_functions.cpp +++ b/modules/gdscript/gd_functions.cpp @@ -1226,12 +1226,12 @@ MethodInfo GDFunctions::get_info(Function p_func) { return mi; } break; case MATH_ISNAN: { - MethodInfo mi("isnan",PropertyInfo(Variant::REAL,"s")); + MethodInfo mi("is_nan",PropertyInfo(Variant::REAL,"s")); mi.return_val.type=Variant::REAL; return mi; } break; case MATH_ISINF: { - MethodInfo mi("isinf",PropertyInfo(Variant::REAL,"s")); + MethodInfo mi("is_inf",PropertyInfo(Variant::REAL,"s")); mi.return_val.type=Variant::REAL; return mi; } break;