mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-03 09:22:45 +00:00
Merge pull request #71 from abergmeier/fix_array_access
Fix accessing array in PrintFloat by char instead of int.
This commit is contained in:
commit
3d1d78e528
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