diff options
Diffstat (limited to 'hscript')
-rw-r--r-- | hscript/script.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hscript/script.cc b/hscript/script.cc index e877ea6..7d03365 100644 --- a/hscript/script.cc +++ b/hscript/script.cc @@ -234,7 +234,8 @@ struct Script::ScriptPrivate { } std::unique_ptr<UserDetail> detail(new UserDetail); detail->name = std::move(name); - accounts.insert(std::make_pair(name->value(), std::move(detail))); + accounts.insert(std::make_pair(detail->name->value(), + std::move(detail))); return true; } |