diff --git a/amxmodx/format.cpp b/amxmodx/format.cpp index 8e4f67b6..0ba04516 100644 --- a/amxmodx/format.cpp +++ b/amxmodx/format.cpp @@ -240,7 +240,7 @@ void AddFloat(U **buf_p, size_t &maxlen, double fval, int width, int prec, int f } // write the fraction part - if (maxlen) + if (maxlen && prec) { *buf++ = '.'; maxlen--;