[nostalgia/studio] Update Vector::back usage

This commit is contained in:
Gary Talent 2021-04-17 11:32:52 -05:00
parent 09383401e5
commit 6664462391

View File

@ -105,7 +105,7 @@ void Project::writeObj(QString path, T *obj) const {
auto typeOut = ox::writeClaw(type.value, ox::ClawFormat::Organic);
oxThrowError(typeOut);
// replace garbage last character with new line
typeOut.value.back() = '\n';
typeOut.value.back().value = '\n';
// write to FS
QString descPath = "/.nostalgia/type_descriptors/";
const auto typePath = descPath + type.value->typeName.c_str();