diff options
| author | 2023-07-04 16:48:48 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:55 -0400 | |
| commit | ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc (patch) | |
| tree | 3112cd88285713a2b6a56e21c1502ae54f1ae847 /src/common/settings.cpp | |
| parent | shared_translation: Add missing time zones (diff) | |
| download | yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.gz yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.xz yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.zip | |
settings: Require time zone setting value for stirng
Diffstat (limited to 'src/common/settings.cpp')
| -rw-r--r-- | src/common/settings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index d9948dde8..78fa99113 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -66,8 +66,8 @@ SWITCHABLE(u8, true); | |||
| 66 | 66 | ||
| 67 | Values values; | 67 | Values values; |
| 68 | 68 | ||
| 69 | std::string GetTimeZoneString() { | 69 | std::string GetTimeZoneString(TimeZone time_zone) { |
| 70 | const auto time_zone_index = static_cast<std::size_t>(values.time_zone_index.GetValue()); | 70 | const auto time_zone_index = static_cast<std::size_t>(time_zone); |
| 71 | ASSERT(time_zone_index < Common::TimeZone::GetTimeZoneStrings().size()); | 71 | ASSERT(time_zone_index < Common::TimeZone::GetTimeZoneStrings().size()); |
| 72 | 72 | ||
| 73 | std::string location_name; | 73 | std::string location_name; |