1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01: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];
};