1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 18:19:43 +01:00

Tidy up binaryBlob initialization to use SDL_zeroa()

It's simpler and more concise than writing out the SDL_memset() in full,
which means you're less likely to screw up those lines of code.
This commit is contained in:
Misa 2021-02-13 17:24:20 -08:00 committed by Ethan Lee
parent bd97378862
commit 70b9ffe6a5

View file

@ -10,8 +10,8 @@
binaryBlob::binaryBlob() binaryBlob::binaryBlob()
{ {
numberofHeaders = 0; numberofHeaders = 0;
SDL_memset(m_headers, 0, sizeof(m_headers)); SDL_zeroa(m_headers);
SDL_memset(m_memblocks, 0, sizeof(m_memblocks)); SDL_zeroa(m_memblocks);
} }
#ifdef VVV_COMPILEMUSIC #ifdef VVV_COMPILEMUSIC