diff --git a/assignment-client/src/assets/AssetServer.cpp b/assignment-client/src/assets/AssetServer.cpp index 9825e75c61..ce95d7d4cb 100644 --- a/assignment-client/src/assets/AssetServer.cpp +++ b/assignment-client/src/assets/AssetServer.cpp @@ -610,7 +610,7 @@ bool AssetServer::renameMapping(const AssetPath& oldPath, const AssetPath& newPa } } else { // take the old hash to remove the old mapping - auto oldMapping = _fileMappings[oldPath].toString(); + auto oldMapping = _fileMappings.take(oldPath).toString(); if (!oldMapping.isEmpty()) { _fileMappings[newPath] = oldMapping;