X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FFont.cpp;h=d3a3de06d5396677ace4b5007aa79475a9995976;hb=04b582180c8f86f50f08f5141a2514a1fcda3e01;hp=135775c1412061224b1e9434acc2d7f19245e80c;hpb=2f2dad58f3b9f7c98cf20211929ff31f5ebf5e5f;p=l2e.git diff --git a/src/graphics/Font.cpp b/src/graphics/Font.cpp index 135775c..d3a3de0 100644 --- a/src/graphics/Font.cpp +++ b/src/graphics/Font.cpp @@ -47,7 +47,7 @@ void Font::DrawNumber(int numberIn, SDL_Surface *dest, Point positionIn, in if (digits > 0) { int i(digits - 1); - while (number < pow(10.0, i)) { + while (number < pow(10.0, i) && i > 0) { position += step; --i; }