Merge pull request #1336 from excaliburtb/dev

Fix issue with writing to an array of std::strings.
This commit is contained in:
jmpenn 2022-08-24 12:50:11 -05:00 committed by GitHub
commit bb69212155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ int Trick::MemoryManager::assign_recursive(void* base_addr, ATTRIBUTES* attr, in
}
break;
case TRICK_STRING :
assign_addr = (char*)base_addr + offset * sizeof(char*);
assign_addr = (char*)base_addr + offset * sizeof(std::string);
if (v_tree && v_tree->v_data) {
*(std::string*)assign_addr = vval_string(v_tree->v_data);
} else {