diff options
| author | Stevoisiak <Stevoisiak@gmail.com> | 2015-02-28 22:03:53 -0500 |
|---|---|---|
| committer | Stevoisiak <Stevoisiak@gmail.com> | 2015-02-28 22:03:53 -0500 |
| commit | 492aa5c3915f38be7ea90f5dddd99f3244cf8914 (patch) | |
| tree | 3dac632b51eafddcf3909a19fe7bb49d49dd3ced /Source/Core/DiscIO/VolumeGC.cpp | |
| parent | 5346e791bcba13f1e018d59514c57c610b2d0f0b (diff) | |
DiscIO: Get rid of unsafe cast
Diffstat (limited to 'Source/Core/DiscIO/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index 5f6e91b847..132a630cf0 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -149,9 +149,9 @@ u64 CVolumeGC::GetRawSize() const bool CVolumeGC::IsDiscTwo() const { - bool discTwo = false; - Read(6,1, (u8*) &discTwo); - return discTwo; + u8 disc_two_check; + Read(6, 1, &disc_two_check); + return (disc_two_check == 1); } CVolumeGC::StringDecoder CVolumeGC::GetStringDecoder(ECountry country) |
