diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/tag_compound.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tag_compound.cpp b/src/tag_compound.cpp index b0a36c30f4..4c6c03264e 100644 --- a/src/tag_compound.cpp +++ b/src/tag_compound.cpp @@ -43,17 +43,17 @@ value& tag_compound::operator[](const std::string& key) return tags[key]; } -std::pair<tag_compound::iterator, bool> tag_compound::put(const std::string& key, std::unique_ptr<tag>&& t) +std::pair<tag_compound::iterator, bool> tag_compound::put(const std::string& key, value&& val) { auto it = tags.find(key); if(it != tags.end()) { - it->second.set_ptr(std::move(t)); + it->second = std::move(val); return {it, false}; } else { - return tags.emplace(key, value(std::move(t))); + return tags.emplace(key, std::move(val)); } } |
