Skip to content

ParticleSystemManager::update is bogus #841

Open
@xezon

Description

@xezon
void ParticleSystemManager::update( void )
{
...
	ParticleSystem *sys;

	for(ParticleSystemListIt it = m_allParticleSystemList.begin(); it != m_allParticleSystemList.end();) 
	{
		sys = (*it);
		if (!sys) {
			continue; // <---- this would cause infinite loop if it were to hit
		}

		if (sys->update(m_localPlayerIndex) == false)
		{
			++it;
			sys->deleteInstance();
		} else {
			++it;
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working rightMinorSeverity: Minor < Major < Critical < Blocker

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions