diff --git a/src/CBot/stdlib/MathFunctions.cpp b/src/CBot/stdlib/MathFunctions.cpp index ebe46545..f6e5b484 100644 --- a/src/CBot/stdlib/MathFunctions.cpp +++ b/src/CBot/stdlib/MathFunctions.cpp @@ -153,7 +153,7 @@ bool rAbs(CBotVar* var, CBotVar* result, int& exception, void* user) *result = fabs(var->GetValFloat()); break; case CBotTypLong: - *result = abs(var->GetValLong()); + *result = labs(var->GetValLong()); break; default: *result = abs(var->GetValInt());