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:
parent
1297b09c47
commit
51bfed2032
2 changed files with 4 additions and 0 deletions
|
@ -12,7 +12,9 @@
|
||||||
|
|
||||||
binaryBlob::binaryBlob(void)
|
binaryBlob::binaryBlob(void)
|
||||||
{
|
{
|
||||||
|
#ifdef VVV_COMPILEMUSIC
|
||||||
numberofHeaders = 0;
|
numberofHeaders = 0;
|
||||||
|
#endif
|
||||||
SDL_zeroa(m_headers);
|
SDL_zeroa(m_headers);
|
||||||
SDL_zeroa(m_memblocks);
|
SDL_zeroa(m_memblocks);
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,9 @@ public:
|
||||||
|
|
||||||
static const int max_headers = 128;
|
static const int max_headers = 128;
|
||||||
|
|
||||||
|
#ifdef VVV_COMPILEMUSIC
|
||||||
int numberofHeaders;
|
int numberofHeaders;
|
||||||
|
#endif
|
||||||
resourceheader m_headers[max_headers];
|
resourceheader m_headers[max_headers];
|
||||||
char* m_memblocks[max_headers];
|
char* m_memblocks[max_headers];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue