diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-05-17 14:59:48 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-05-17 14:59:48 +0200 |
commit | b58e261d41ba534584f2efc22240624a304b9d1f (patch) | |
tree | 6d5880e2e750357cafa5eebd47d54b56210ad546 | |
parent | 02f3e7e766ef33de51f0d2dffdb5b1abf4b44022 (diff) |
GDScript: Fix method info for is_nan and is_inf
As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
-rw-r--r-- | modules/gdscript/gd_functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gd_functions.cpp b/modules/gdscript/gd_functions.cpp index 96fb9d81a7..1c05a71d01 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; |