Fix a vector assertion introduced by PR#5002

This commit is contained in:
Sepalani 2017-03-06 01:41:42 +00:00
parent f9f4381461
commit bc1990ce5d
1 changed files with 1 additions and 1 deletions

View File

@ -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;