CGE: Fix Memset on non-trivial Structure GCC Compiler Warning

This commit is contained in:
D G Turner 2021-03-21 15:01:26 +00:00
parent 75599d4239
commit 48220b8ec5

View File

@ -491,7 +491,11 @@ void CGEEngine::loadHeroXY() {
EncryptedStream cf(this, "CGE.HXY");
uint16 x, y;
memset(_heroXY, 0, sizeof(_heroXY));
for (uint i = 0; i < ARRAYSIZE(_heroXY); i++) {
_heroXY[i].x = 0;
_heroXY[i].y = 0;
}
if (!cf.err()) {
for (int i = 0; i < kSceneMax; ++i) {
cf.read((byte *)&x, 2);