summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeCommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DiscIO/VolumeCommon.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeCommon.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeCommon.cpp b/Source/Core/DiscIO/VolumeCommon.cpp
index 87f0c722a7..1728e78732 100644
--- a/Source/Core/DiscIO/VolumeCommon.cpp
+++ b/Source/Core/DiscIO/VolumeCommon.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
+#include <map>
#include <string>
#include <vector>
@@ -104,7 +105,7 @@ std::string IVolume::GetName() const
if (names.empty())
return "";
else
- return names[0];
+ return names.cbegin()->second;
}
}