Explorar o código

tz_manager: Fix comparison to wrong integer

lat9nq %!s(int64=3) %!d(string=hai) anos
pai
achega
8f9afbcd91
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/hle/service/time/time_zone_manager.cpp

+ 1 - 1
src/core/hle/service/time/time_zone_manager.cpp

@@ -557,7 +557,7 @@ static bool ParseTimeZoneBinary(TimeZoneRule& time_zone_rule, FileSys::VirtualFi
     for (int index{}; index < time_zone_rule.time_count; ++index) {
         const u8 type{*vfs_file->ReadByte(read_offset)};
         read_offset += sizeof(u8);
-        if (time_zone_rule.time_count <= type) {
+        if (time_zone_rule.type_count <= type) {
             return {};
         }
         if (time_zone_rule.types[index] != 0) {