Made ComponentPool copyable by making sure string fields are handled properly

This commit is contained in:
2016-02-18 11:37:03 +01:00
parent 0af9edc6e5
commit 97499f1c28
7 changed files with 89 additions and 48 deletions
@@ -185,6 +185,9 @@ void EntityFilePreprocessor::parseComponentInfo()
field.Offset = fieldOffset;
field.Stride = stride;
compInfo.FieldsInOrder.push_back(name);
if (field.Type == "string") {
compInfo.StringFields.push_back(name);
}
fieldOffset += stride;
}