summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-09-22 22:38:43 +0200
committerLioncash <mathew1800@gmail.com>2020-09-22 22:38:45 +0200
commita881efbf261f901ceac20286e46c6251c473bc17 (patch)
tree9f906d43d51ec8421e7294b31380fddbb8ddc060 /src
parentMerge pull request #4675 from Morph1984/fix-boot-multicontent (diff)
downloadyuzu-a881efbf261f901ceac20286e46c6251c473bc17.tar
yuzu-a881efbf261f901ceac20286e46c6251c473bc17.tar.gz
yuzu-a881efbf261f901ceac20286e46c6251c473bc17.tar.bz2
yuzu-a881efbf261f901ceac20286e46c6251c473bc17.tar.lz
yuzu-a881efbf261f901ceac20286e46c6251c473bc17.tar.xz
yuzu-a881efbf261f901ceac20286e46c6251c473bc17.tar.zst
yuzu-a881efbf261f901ceac20286e46c6251c473bc17.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/file_sys/ips_layer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/file_sys/ips_layer.cpp b/src/core/file_sys/ips_layer.cpp
index a08a70efd..dd779310f 100644
--- a/src/core/file_sys/ips_layer.cpp
+++ b/src/core/file_sys/ips_layer.cpp
@@ -245,9 +245,11 @@ void IPSwitchCompiler::Parse() {
// Read rest of patch
while (true) {
- if (i + 1 >= lines.size())
+ if (i + 1 >= lines.size()) {
break;
- const auto patch_line = lines[++i];
+ }
+
+ const auto& patch_line = lines[++i];
// Start of new patch
if (StartsWith(patch_line, "@enabled") || StartsWith(patch_line, "@disabled")) {