diff --git a/src/nostalgia/studio/lib/project.hpp b/src/nostalgia/studio/lib/project.hpp index c4766931..4bc7f7c0 100644 --- a/src/nostalgia/studio/lib/project.hpp +++ b/src/nostalgia/studio/lib/project.hpp @@ -99,7 +99,7 @@ ox::Error Project::writeObj(const ox::String &path, T *obj) const noexcept { typeOut.back().value = '\n'; // write to FS ox::String descPath = "/.nostalgia/type_descriptors/"; - const auto typePath = descPath + type->typeName.c_str(); + const auto typePath = descPath + type->typeName; oxReturnError(mkdir(descPath)); oxReturnError(writeBuff(typePath, typeOut)); fileUpdated.emit(path);