MassManager: fix a bug with importing.
This commit is contained in:
parent
05a2b1cfb0
commit
dd460b4313
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ auto MassManager::importMass(const std::string& staged_fn, int hangar) -> bool {
|
|||
Utility::Directory::rm(_hangars[hangar].filename());
|
||||
}
|
||||
|
||||
if(!Utility::Directory::move(source + ".tmp", _hangars[hangar].filename())) {
|
||||
if(!Utility::Directory::move(source + ".tmp", Utility::Directory::join(_saveDirectory, _hangars[hangar].filename()))) {
|
||||
_lastError = Utility::formatString("Couldn't move {} to hangar {:.2d}", staged_fn, hangar + 1);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue