GDScript: Fix method info for is_nan and is_inf

As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
(cherry picked from commit b58e261d41)
This commit is contained in:
Rémi Verschelde 2016-05-17 14:59:48 +02:00 committed by Rémi Verschelde
parent c6e2c0f01d
commit 1d85dcb1fa
1 changed files with 2 additions and 2 deletions

View File

@ -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;