avoid incrementing the counter beyond the DLC count

This commit is contained in:
a 2023-12-22 09:14:03 +02:00 committed by otavepto
parent 205d88b204
commit 85c98a5933

View File

@ -88,7 +88,7 @@ Auth_Data Auth_Manager::getTicketData( void *pTicket, int cbMaxTicket, uint32 *p
ticket_data.Ticket.Licenses.push_back(0);
unsigned int dlcCount = settings->DLCCount();
ticket_data.Ticket.DLCs.resize(0); //currently set to 0
for (int i = 0; i <= dlcCount; ++i)
for (int i = 0; i < dlcCount; ++i)
{
DLC dlc;
AppId_t appid;