DRAGONS: Fix memset() Usage in LoadingScreenState Constructor

This was not clearing the full member variables as the size of the
elements was not multiplied by the number of elements.

This was flagged up by a GCC compiler warning.
This commit is contained in:
D G Turner 2020-05-09 06:11:07 +01:00
parent 834ab1299d
commit 348661c08d

View File

@ -139,8 +139,8 @@ struct LoadingScreenState {
loadingFlamesUpdateCounter = 0;
loadingFlamesRiseCounter = 0;
memset(flames, 0, ARRAYSIZE(flames));
memset(quads, 0, ARRAYSIZE(quads));
memset(flames, 0, ARRAYSIZE(flames)*sizeof(flames[0]));
memset(quads, 0, ARRAYSIZE(quads)*sizeof(quads[0]));
}
};