summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-10-21 08:34:07 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-10-22 21:02:04 +0200
commitc7e079a5d441840e1ae2aabd5be0f45ffb737f1c (patch)
treed8d4f64d081a910aa8364fdf65ac32ab10bc4ab6 /src/core/file_sys
parentgeneral: Resolve -Wclass-memaccess (diff)
downloadyuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar
yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.gz
yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.bz2
yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.lz
yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.xz
yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.tar.zst
yuzu-c7e079a5d441840e1ae2aabd5be0f45ffb737f1c.zip
Diffstat (limited to '')
-rw-r--r--src/core/file_sys/card_image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/card_image.cpp b/src/core/file_sys/card_image.cpp
index f23d9373b..5d02865f4 100644
--- a/src/core/file_sys/card_image.cpp
+++ b/src/core/file_sys/card_image.cpp
@@ -232,8 +232,8 @@ const std::vector<std::shared_ptr<NCA>>& XCI::GetNCAs() const {
std::shared_ptr<NCA> XCI::GetNCAByType(NCAContentType type) const {
const auto program_id = secure_partition->GetProgramTitleID();
- const auto iter = std::find_if(
- ncas.begin(), ncas.end(), [this, type, program_id](const std::shared_ptr<NCA>& nca) {
+ const auto iter =
+ std::find_if(ncas.begin(), ncas.end(), [type, program_id](const std::shared_ptr<NCA>& nca) {
return nca->GetType() == type && nca->GetTitleId() == program_id;
});
return iter == ncas.end() ? nullptr : *iter;