mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-25 02:52:12 +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 )
|
static void PrintFloat( float f )
|
||||||
{
|
{
|
||||||
char buf[128], i;
|
char buf[128];
|
||||||
|
int i;
|
||||||
|
|
||||||
for( i = sprintf( buf, "%3.2f", f ); i < 7; i++ )
|
for( i = sprintf( buf, "%3.2f", f ); i < 7; i++ )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue