mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 05:01:43 +00:00
CGE: Fix Memset on non-trivial Structure GCC Compiler Warning
This commit is contained in:
parent
75599d4239
commit
48220b8ec5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user