VERY experimental Nintendo Switch 2 emulator
C++
time_zone_manager: Compare to the correct boolean
lat9nq5173821cfaa5
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cppindex e1728c06d5..63aacd19f1 100644--- a/src/core/hle/service/time/time_zone_manager.cpp+++ b/src/core/hle/service/time/time_zone_manager.cpp@@ -849,8 +849,9 @@ static Result CreateCalendarTime(s64 time, int gmt_offset, CalendarTimeInternal&static Result ToCalendarTimeInternal(const TimeZoneRule& rules, s64 time,CalendarTimeInternal& calendar_time,CalendarAdditionalInfo& calendar_additional_info) {- if ((rules.go_ahead && time < rules.ats[0]) ||- (rules.go_back && time > rules.ats[rules.time_count - 1])) {+ ASSERT(rules.go_ahead ? rules.time_count > 0 : true);+ if ((rules.go_back && time < rules.ats[0]) ||+ (rules.go_ahead && time > rules.ats[rules.time_count - 1])) {s64 seconds{};if (time < rules.ats[0]) {seconds = rules.ats[0] - time;