1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-01 18:43:33 +02:00

Ifdef numberofHeaders out if not compiling music

This variable is only used when compiling music. Since it doesn't
actually keep track of the number of headers otherwise, ifdef it behind
VVV_COMPILEMUSIC.
This commit is contained in:
Misa 2021-09-23 21:55:58 -07:00
parent 1297b09c47
commit 51bfed2032
2 changed files with 4 additions and 0 deletions

View File

@ -12,7 +12,9 @@
binaryBlob::binaryBlob(void)
{
#ifdef VVV_COMPILEMUSIC
numberofHeaders = 0;
#endif
SDL_zeroa(m_headers);
SDL_zeroa(m_memblocks);
}

View File

@ -57,7 +57,9 @@ public:
static const int max_headers = 128;
#ifdef VVV_COMPILEMUSIC
int numberofHeaders;
#endif
resourceheader m_headers[max_headers];
char* m_memblocks[max_headers];
};