DIRECTOR: Assignment operator for InfoEntry struct

This commit is contained in:
Henrik "Henke37" Andersson 2020-08-19 02:44:38 +02:00 committed by Eugene Sandulenko
parent 3460ee1132
commit 184d54708d

View File

@ -60,6 +60,14 @@ struct InfoEntry {
data = nullptr;
}
InfoEntry &operator=(const InfoEntry &old) {
free(data);
len = old.len;
data = (byte *)malloc(len);
memcpy(data, old.data, len);
return *this;
}
Common::String readString(bool pascal = true) {
Common::String res;