Core: Fixed missing pick in Map::Put

git-svn-id: svn://ultimatepp.org/upp/trunk@10251 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-09-30 13:59:52 +00:00
parent dca71c118d
commit 489aa84d21

View file

@ -465,7 +465,7 @@ int AMap<K, T, V>::Put(const K& k, T&& x)
{
int i = key.Put(k);
if(i < value.GetCount())
value[i] = x;
value[i] = pick(x);
else {
ASSERT(i == value.GetCount());
value.Add(pick(x));