summaryrefslogtreecommitdiff
path: root/src/value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/value.cpp')
-rw-r--r--src/value.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/value.cpp b/src/value.cpp
index 339c737505..a5f8e3c894 100644
--- a/src/value.cpp
+++ b/src/value.cpp
@@ -19,6 +19,7 @@
*/
#include "value.h"
#include "libnbt.h"
+#include <typeinfo>
namespace nbt
{
@@ -35,7 +36,8 @@ value& value::operator=(std::unique_ptr<tag>&& t)
value& value::operator=(tag&& t)
{
- return *this = std::move(t).move_clone();
+ tag_->assign(std::move(t));
+ return *this;
}
tag_type value::get_type() const