Page MenuHomeFeedback Tracker

Double super call in method.
New, NormalPublic

Description

The class ContaminatedArea_Dynamic has a double super call in the DeferredInit method which is obviously an error.

override void DeferredInit()

	{
		super.DeferredInit();

		// We make sure we have the particle array
		if (!m_ToxicClouds)
			m_ToxicClouds = new array<Particle>();
		
		m_Position = GetPosition();
		m_OffsetPos = m_Position;
		m_OffsetPos[1] = m_OffsetPos[1] + AIRBORNE_FX_OFFSET;
		
		SetupZoneData(new EffectAreaParams);
		
		// If a player arrives slightly later during the creation process we check if playing the flare FX is relevant
		if (m_DecayState == eAreaDecayStage.INIT)
			PlayFlareVFX();
		
		if ( m_DecayState == eAreaDecayStage.LIVE )
			InitZone(); // If it has already been created, we simply do the normal setup, no cool effects, force the LIVE state
		
		super.DeferredInit();
	}

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Just check the method in the class.

Event Timeline