MassManager: adapt to Mass changes.
This commit is contained in:
parent
e839d1c19b
commit
0a438a4d72
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ auto MassManager::exportMass(int hangar) -> bool {
|
|||
|
||||
std::string source = Utility::Directory::join(_saveDirectory, _hangars[hangar].filename());
|
||||
std::string dest = Utility::Directory::join(_stagingAreaDirectory,
|
||||
Utility::formatString("{}_{}.sav", _hangars[hangar].name(), _steamId));
|
||||
Utility::formatString("{}_{}.sav", *_hangars[hangar].name(), _steamId));
|
||||
|
||||
if(!Utility::Directory::copy(source, dest)) {
|
||||
_lastError = Utility::formatString("Couldn't export data from hangar {:.2d} to {}", hangar, dest);
|
||||
|
@ -187,7 +187,7 @@ void MassManager::refreshStagedMasses() {
|
|||
file_list.erase(iter, file_list.end());
|
||||
|
||||
for(const std::string& file : file_list) {
|
||||
std::string name = Mass::getNameFromFile(Utility::Directory::join(_stagingAreaDirectory, file));
|
||||
std::string name = *Mass::getNameFromFile(Utility::Directory::join(_stagingAreaDirectory, file));
|
||||
|
||||
if(!name.empty()) {
|
||||
_stagedMasses[file] = name;
|
||||
|
|
Loading…
Reference in a new issue