From 5f181957b3db9bc8271fd758d7acdf36a60eee8e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 7 Oct 2015 09:47:26 -0400 Subject: [PATCH] NANDContentLoader: Replace a string rbegin() call with a back() call --- Source/Core/DiscIO/NANDContentLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/NANDContentLoader.cpp b/Source/Core/DiscIO/NANDContentLoader.cpp index 0e26fa051e..3ea33718f3 100644 --- a/Source/Core/DiscIO/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/NANDContentLoader.cpp @@ -205,7 +205,7 @@ bool CNANDContentLoader::Initialize(const std::string& _rName) { std::string TMDFileName(m_Path); - if ('/' == *TMDFileName.rbegin()) + if (TMDFileName.back() == '/') TMDFileName += "title.tmd"; else m_Path = TMDFileName.substr(0, TMDFileName.find("title.tmd"));