From 6cdf1b7017c6988213dd881ca1f42b22d75bbf3b Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 28 Apr 2022 19:15:41 +0300 Subject: Autocommit at 28.04.2022 @ 19:15 --- src/List/List.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/List/List.cpp') diff --git a/src/List/List.cpp b/src/List/List.cpp index 1312e61..66d66df 100644 --- a/src/List/List.cpp +++ b/src/List/List.cpp @@ -90,7 +90,8 @@ List::List(List&& other) { template List& List::operator=(List&& other) { - if (this != other) { + if (this != &other) { + free(); length = other.length; count = other.count; elements = other.elements; -- cgit v1.3.1-23-gd82d