mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
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:
parent
834ab1299d
commit
348661c08d
@ -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]));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user