From bc1990ce5d38397b25233333ff65bc2895d3f659 Mon Sep 17 00:00:00 2001 From: Sepalani Date: Mon, 6 Mar 2017 01:41:42 +0000 Subject: [PATCH] Fix a vector assertion introduced by PR#5002 --- Source/Core/Core/IOS/ES/Formats.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IOS/ES/Formats.cpp b/Source/Core/Core/IOS/ES/Formats.cpp index 602811a83c..7e5541d723 100644 --- a/Source/Core/Core/IOS/ES/Formats.cpp +++ b/Source/Core/Core/IOS/ES/Formats.cpp @@ -258,7 +258,7 @@ std::vector TicketReader::GetRawTicketView(u32 ticket_num) const std::memcpy(view.data(), &view_id, sizeof(view_id)); // Copy the rest of the ticket view structure from the ticket. - view.insert(view.end(), view_start, view_start + sizeof(TicketView) - sizeof(view_id)); + view.insert(view.end(), view_start, view_start + (sizeof(TicketView) - sizeof(view_id))); _assert_(view.size() == sizeof(TicketView)); return view;