diff --git a/src/nostalgia/studio/lib/project.hpp b/src/nostalgia/studio/lib/project.hpp index a4d7b1e5..dbae80d0 100644 --- a/src/nostalgia/studio/lib/project.hpp +++ b/src/nostalgia/studio/lib/project.hpp @@ -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();