mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- fixed: The NoiseList array was not cleared before use.
This commit is contained in:
parent
cc685e982b
commit
34c67b9eae
1 changed files with 1 additions and 0 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue