- fixed: The NoiseList array was not cleared before use.

This commit is contained in:
Christoph Oelckers 2016-05-27 00:00:27 +02:00
parent cc685e982b
commit 34c67b9eae

View file

@ -255,6 +255,7 @@ void P_NoiseAlert (AActor *target, AActor *emitter, bool splash, double maxdist)
return;
validcount++;
NoiseList.Clear();
NoiseMarkSector(emitter->Sector, target, splash, emitter, 0, maxdist);
for (unsigned i = 0; i < NoiseList.Size(); i++)
{