From 65a37856ec30a78488309e3a9c103ff0cf373f1a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 29 Apr 2022 02:10:43 +0200 Subject: [PATCH] -fix TArray::Append with rvalue parameter This must clear the source array to obey move rules. --- src/common/utility/tarray.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/utility/tarray.h b/src/common/utility/tarray.h index 75df8dffb..181a9e939 100644 --- a/src/common/utility/tarray.h +++ b/src/common/utility/tarray.h @@ -408,6 +408,7 @@ public: { new(&Array[start + i]) T(std::move(item[i])); } + item.Clear(); return start; }