Fix clearing arrays of strings (#1337)

#1335
This commit is contained in:
Thomas Brain 2022-08-25 11:05:26 -05:00 committed by GitHub
parent 2deb7cd180
commit 433ae34e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ void Trick::MemoryManager::clear_rvalue( void* base_address, ATTRIBUTES* attr, i
*(void**)final_address = (void*)NULL;
break;
case TRICK_STRING :
final_address = (char*)base_address + offset * sizeof(void*);
final_address = (char*)base_address + offset * sizeof(std::string);
*(std::string*)final_address = "";
break;
case TRICK_STL :