forked from Mirrors/openclonk
Fix debugrec false alarm on some uninitialized memory
parent
067886a140
commit
b4d523851a
|
@ -326,7 +326,9 @@ void C4Object::AssignRemoval(bool fExitContents)
|
|||
if (!Status) return;
|
||||
#ifdef DEBUGREC
|
||||
C4RCCreateObj rc;
|
||||
memset(&rc, '\0', sizeof(rc));
|
||||
rc.oei=Number;
|
||||
if (Def && Def->GetName()) strncpy(rc.id, Def->GetName(), 32+1);
|
||||
rc.x=GetX(); rc.y=GetY(); rc.ownr=Owner;
|
||||
AddDbgRec(RCT_DsObj, &rc, sizeof(rc));
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue