mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DiscIO: Get rid of unsafe cast
This commit is contained in:
@ -239,9 +239,9 @@ bool CVolumeWiiCrypted::IsWiiDisc() const
|
||||
|
||||
bool CVolumeWiiCrypted::IsDiscTwo() const
|
||||
{
|
||||
bool discTwo = false;
|
||||
m_pReader->Read(6, 1, (u8*)&discTwo);
|
||||
return discTwo;
|
||||
u8 disc_two_check;
|
||||
m_pReader->Read(6, 1, &disc_two_check);
|
||||
return (disc_two_check == 1);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user