diff options
Diffstat (limited to 'src/game/bg_lib.c')
-rw-r--r-- | src/game/bg_lib.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c index f5aea779..a1492135 100644 --- a/src/game/bg_lib.c +++ b/src/game/bg_lib.c @@ -1894,9 +1894,15 @@ int sscanf( const char *buffer, const char *fmt, ... ) case 'd': case 'u': **arg = _atoi( &buffer ); + + if( **arg != 0 ) + count++; break; case 'f': *(float *)*arg = _atof( &buffer ); + + if( **arg != 0 ) + count++; break; } |