Fixed a small bug

This commit is contained in:
Markus Gans 2020-05-24 02:28:32 +02:00
parent 9e68344a2b
commit 6c6b70ed9e
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ FString::FString (const FString& s) // copy constructor
FString::FString (FString&& s) noexcept // move constructor
{
string = std::move(s.string);
c_string = std::move(c_string);
c_string = std::move(s.c_string);
length = s.length;
bufsize = s.bufsize;
@ -183,7 +183,7 @@ FString& FString::operator = (const FString& s)
FString& FString::operator = (FString&& s) noexcept
{
string = std::move(s.string);
c_string = std::move(c_string);
c_string = std::move(s.c_string);
length = s.length;
bufsize = s.bufsize;