mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Fix incorrect memset() call (reported by Peter Bortas).
svn-id: r43375
This commit is contained in:
parent
6fae9bc3f4
commit
a68b033a53
@ -132,7 +132,7 @@ const SCENE_STRUC *GetSceneStruc(const byte *pStruc) {
|
||||
|
||||
// Copy appropriate fields into tempStruc, and return a pointer to it
|
||||
const byte *p = pStruc;
|
||||
memset(&tempStruc, sizeof(SCENE_STRUC), 0);
|
||||
memset(&tempStruc, 0, sizeof(SCENE_STRUC));
|
||||
|
||||
tempStruc.numEntrance = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.numPoly = READ_UINT32(p); p += sizeof(uint32);
|
||||
|
Loading…
Reference in New Issue
Block a user