mirror of
https://github.com/overte-org/overte.git
synced 2025-04-24 05:53:29 +02:00
fix rename to take old mapping first
This commit is contained in:
parent
5a197838f4
commit
a65d06c7ce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue