aboutsummaryrefslogtreecommitdiffstats
path: root/code/game
diff options
context:
space:
mode:
Diffstat (limited to 'code/game')
-rw-r--r--code/game/bg_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/game/bg_lib.c b/code/game/bg_lib.c
index 787a9ea..997b9c9 100644
--- a/code/game/bg_lib.c
+++ b/code/game/bg_lib.c
@@ -1067,7 +1067,7 @@ void AddInt( char **buf_p, int val, int width, int flags ) {
}
if( flags & LADJUST ) {
- while ( width-- ) {
+ while ( width-- > 0) {
*buf++ = ( flags & ZEROPAD ) ? '0' : ' ';
}
}