mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-24 18:50:20 +00:00
Fix accessing array in PrintFloat by char instead of int.
This commit is contained in:
parent
cb2754884d
commit
bf283af184
1 changed files with 2 additions and 1 deletions
|
@ -1421,7 +1421,8 @@ PrintFloat
|
|||
*/
|
||||
static void PrintFloat( float f )
|
||||
{
|
||||
char buf[128], i;
|
||||
char buf[128];
|
||||
int i;
|
||||
|
||||
for( i = sprintf( buf, "%3.2f", f ); i < 7; i++ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue