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++) for ( ; i < end; i++)
{ {
/* TODO: this could be done with memset */ memset(&paintbuffer[i - paintedtime], 0,
paintbuffer[i - paintedtime].left = sizeof(paintbuffer[i - paintedtime]));
paintbuffer[i - paintedtime].right = 0;
} }
} }