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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}
}
/*#####