mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
IOS/ES: Fix a ticket validity check
This commit is contained in:
@ -239,7 +239,7 @@ void TicketReader::SetBytes(std::vector<u8>&& bytes)
|
|||||||
|
|
||||||
bool TicketReader::IsValid() const
|
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)
|
void TicketReader::DoState(PointerWrap& p)
|
||||||
|
Reference in New Issue
Block a user