mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 15:21:44 +00:00
Use memset() instead of array magic
This commit is contained in:
parent
272b897919
commit
15400b2133
1 changed files with 2 additions and 3 deletions
|
@ -254,9 +254,8 @@ S_PaintChannels(int endtime)
|
|||
|
||||
for ( ; i < end; i++)
|
||||
{
|
||||
/* TODO: this could be done with memset */
|
||||
paintbuffer[i - paintedtime].left =
|
||||
paintbuffer[i - paintedtime].right = 0;
|
||||
memset(&paintbuffer[i - paintedtime], 0,
|
||||
sizeof(paintbuffer[i - paintedtime]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue