diff options
| author | Alejandro Asenjo Nitti <96613413+sonicdcer@users.noreply.github.com> | 2024-07-29 03:55:45 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 00:55:45 -0600 |
| commit | 8733d06dc3c7f0316efe9e198528552fc0ec7f5b (patch) | |
| tree | cc11181f10fa6ded4c607c1b57bb9b1f428421a9 | |
| parent | aa02af7b7d82f261356c766af2e92a3f451e5f43 (diff) | |
Fix segfault (#146)
| -rw-r--r-- | src/Companion.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index 2c2655b..5615cbe 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -1475,6 +1475,10 @@ std::optional<YAML::Node> Companion::AddAsset(YAML::Node asset) { auto result = this->RegisterAsset(output, asset); + if(!gCurrentVirtualPath.empty()) { + asset["path"] = gCurrentVirtualPath; + } + if(result.has_value()){ asset["vpath"] = std::get<0>(result.value()); |
