diff --git a/src/hb-private.hh b/src/hb-private.hh index b91595d95..dc4700091 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -379,7 +379,7 @@ struct hb_map_t if (!item) return; item->finish (); - items[items.len - 1] = *item; + *item = items[items.len - 1]; items.pop (); }