From 6664462391e336aa92dd25764b097f9e59de288f Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 17 Apr 2021 11:32:52 -0500 Subject: [PATCH] [nostalgia/studio] Update Vector::back usage --- src/nostalgia/studio/lib/project.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();