IOS/ES: Fix a ticket validity check

This commit is contained in:
Léo Lam 2017-05-07 16:16:19 +02:00
parent 5535afcb2a
commit cc5b5c15ac
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ void TicketReader::SetBytes(std::vector<u8>&& bytes)
bool TicketReader::IsValid() const
{
return m_bytes.size() % sizeof(Ticket) == 0;
return !m_bytes.empty() && m_bytes.size() % sizeof(Ticket) == 0;
}
void TicketReader::DoState(PointerWrap& p)