From d97ab913cf4e8ead9438bab0c6a2363d4b6df9db Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 8 Jan 2009 20:00:38 +0000 Subject: [PATCH] Fixed zero precision bug in atcprintf (bug 3242, r=sawce). --- amxmodx/format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--;