fix(containers): fix TArray lost all elements after move assignment
This commit is contained in:
@ -189,7 +189,9 @@ public:
|
||||
Memory::Destruct(Impl.Pointer, Num());
|
||||
Impl->Deallocate(Impl.Pointer);
|
||||
|
||||
Impl.Pointer = InValue.Impl.Pointer;
|
||||
Impl.ArrayNum = InValue.Num();
|
||||
Impl.ArrayMax = InValue.Max();
|
||||
Impl.Pointer = InValue.Impl.Pointer;
|
||||
|
||||
InValue.Impl.ArrayNum = 0;
|
||||
InValue.Impl.ArrayMax = InValue.Impl->CalculateSlackReserve(InValue.Num());
|
||||
|
Reference in New Issue
Block a user