diff options
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r-- | src/actormanager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp index 35be95159..13cbeb286 100644 --- a/src/actormanager.cpp +++ b/src/actormanager.cpp @@ -2146,10 +2146,9 @@ void ActorManager::updateNameId(const std::string &name, std::string dir; if (beingId != BeingId_zero) { - dir = settings.usersIdDir; - dir.append(idStr); - dir.append("/"); - dir.append(stringToHexPath(name)); + dir = pathJoin(settings.usersIdDir, + idStr, + stringToHexPath(name)); Files::saveTextFile(dir, "info.txt", (name + "\n").append(dateStr)); |