summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorSepalani <sepalani@hotmail.fr>2017-03-06 01:41:42 +0000
committerSepalani <sepalani@hotmail.fr>2017-03-06 01:41:42 +0000
commitbc1990ce5d38397b25233333ff65bc2895d3f659 (patch)
tree6a9daf5dba7251f776576d02d050e3faf00c93a6 /Source
parentf9f438146163677106a4c7ab1021322b5e0ed4c1 (diff)
Fix a vector assertion introduced by PR#5002
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/IOS/ES/Formats.cpp2
1 files changed, 1 insertions, 1 deletions
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<u8> 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;