fix(Scripts/ShadowmoonValley): Illidan buffer overflow (#21442)

This commit is contained in:
Jelle Meeus
2025-02-14 11:31:21 +01:00
committed by GitHub
parent 9412c1eb3a
commit 3854d00dee

View File

@@ -1385,9 +1385,12 @@ void npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::SummonNextWave()
}
}
}
++WaveCount;
WaveTimer = WavesInfo[WaveCount].SpawnTimer;
AnnounceTimer = WavesInfo[WaveCount].YellTimer;
if (WaveCount < 3)
{
++WaveCount;
WaveTimer = WavesInfo[WaveCount].SpawnTimer;
AnnounceTimer = WavesInfo[WaveCount].YellTimer;
}
}
/*#####