Fix a vector assertion introduced by PR#5002
This commit is contained in:
parent
f9f4381461
commit
bc1990ce5d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue