Skip to content

Commit 4cc109a

Browse files
authored
[GEN][ZH] Remove bogus calls to memset (#1323)
1 parent 1a785ff commit 4cc109a

File tree

4 files changed

+0
-4
lines changed

4 files changed

+0
-4
lines changed

Generals/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,6 @@ ParticleInfo ParticleSystem::mergeRelatedParticleSystems( ParticleSystem *master
23892389
if (!masterParticleSystem || !slaveParticleSystem) {
23902390
DEBUG_CRASH(("masterParticleSystem or slaveParticleSystem was NULL. Should not happen. JKMCD"));
23912391
ParticleInfo bogus;
2392-
memset( &bogus, 0, sizeof( bogus ) );
23932392
return bogus;
23942393
}
23952394

GeneralsMD/Code/GameEngine/Source/GameClient/System/ParticleSys.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,6 @@ ParticleInfo ParticleSystem::mergeRelatedParticleSystems( ParticleSystem *master
22992299
if (!masterParticleSystem || !slaveParticleSystem) {
23002300
DEBUG_CRASH(("masterParticleSystem or slaveParticleSystem was NULL. Should not happen. JKMCD"));
23012301
ParticleInfo bogus;
2302-
memset( &bogus, 0, sizeof( bogus ) );
23032302
return bogus;
23042303
}
23052304

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DPropBuffer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ for the props. */
114114
//=============================================================================
115115
W3DPropBuffer::W3DPropBuffer(void)
116116
{
117-
memset(this, sizeof(W3DPropBuffer), 0);
118117
m_initialized = false;
119118
m_numProps = 0;
120119
m_numPropTypes = 0;

GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/W3DTreeBuffer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,6 @@ for the trees. */
10951095
//=============================================================================
10961096
W3DTreeBuffer::W3DTreeBuffer(void)
10971097
{
1098-
memset(this, sizeof(W3DTreeBuffer), 0);
10991098
m_initialized = false;
11001099
Int i;
11011100
for (i=0; i<MAX_BUFFERS; i++) {

0 commit comments

Comments
 (0)