From 85c98a59335c9ffd2f9dbd9ef8c23a354fcc39a6 Mon Sep 17 00:00:00 2001 From: a Date: Fri, 22 Dec 2023 09:14:03 +0200 Subject: [PATCH] avoid incrementing the counter beyond the DLC count --- dll/auth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/auth.cpp b/dll/auth.cpp index 1993647b..b38be15c 100644 --- a/dll/auth.cpp +++ b/dll/auth.cpp @@ -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;