work around compiler oddity

This commit is contained in:
Glenn Maynard
2005-01-10 13:09:19 +00:00
parent f98a51d87e
commit 681cf95ebc
+11 -2
View File
@@ -569,9 +569,18 @@ static float ArrowGetAlphaOrGlow( bool bGlow, const PlayerState* pPlayerState, i
struct StripBuffer
{
enum { size = 512 };
RageSpriteVertex buf[size];
RageSpriteVertex *buf;
RageSpriteVertex *v;
StripBuffer() { Init(); }
StripBuffer()
{
buf = (RageSpriteVertex *) malloc( size * sizeof(RageSpriteVertex) );
Init();
}
~StripBuffer()
{
free( buf );
}
void Init()
{
v = buf;