summaryrefslogtreecommitdiff
path: root/src/common/extract.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/extract.hpp')
-rw-r--r--src/common/extract.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/extract.hpp b/src/common/extract.hpp
index 3c24693..c7bdbcb 100644
--- a/src/common/extract.hpp
+++ b/src/common/extract.hpp
@@ -198,6 +198,8 @@ bool extract(XString str, struct item *it);
inline
bool extract(XString str, MapName *m)
{
+ XString::iterator it = std::find(str.begin(), str.end(), '.');
+ str = str.xislice_h(it);
VString<15> tmp;
bool rv = extract(str, &tmp);
*m = tmp;