Use memset() instead of array magic

This commit is contained in:
Yamagi Burmeister 2012-06-06 10:02:55 +02:00
parent 272b897919
commit 15400b2133

View file

@ -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]));
}
}