MapPropertySerialiser: fix serialisation of demo saves.
This commit is contained in:
parent
48210c7186
commit
b3220ca8e1
1 changed files with 9 additions and 2 deletions
|
@ -121,8 +121,15 @@ auto MapPropertySerialiser::serialiseProperty(UnrealPropertyBase::ptr& prop, Uns
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto& value : pair.values) {
|
for(auto& value : pair.values) {
|
||||||
if(!serialiser.write(value, dummy_bytes_written, writer)) {
|
if(map_prop->valueType == "StructProperty") {
|
||||||
return false;
|
if(!serialiser.write(value, dummy_bytes_written, writer)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if(!serialiser.writeItem(value, map_prop->valueType, dummy_bytes_written, writer)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue