GDScript: Fix method info for is_nan and is_inf

As reported on https://godotengine.org/qa/4114/why-isnan-and-isinf-arent-implemented
This commit is contained in:
Rémi Verschelde 2016-05-17 14:59:48 +02:00
parent 02f3e7e766
commit b58e261d41
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;