mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Merge pull request #5030 from sepalani/fix_pr_5002
Fix a vector assertion introduced by PR #5002
This commit is contained in:
commit
028da93d35
@ -258,7 +258,7 @@ std::vector<u8> TicketReader::GetRawTicketView(u32 ticket_num) const
|
|||||||
std::memcpy(view.data(), &view_id, sizeof(view_id));
|
std::memcpy(view.data(), &view_id, sizeof(view_id));
|
||||||
|
|
||||||
// Copy the rest of the ticket view structure from the ticket.
|
// 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));
|
_assert_(view.size() == sizeof(TicketView));
|
||||||
|
|
||||||
return view;
|
return view;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user