Fix use of optional from wrong namespace

This commit is contained in:
Jonathan G Rennison
2021-11-03 01:33:31 +00:00
parent 168dc4678d
commit 486e69f1f8
2 changed files with 2 additions and 2 deletions

View File

@@ -753,7 +753,7 @@ void ScanScenarios()
*/
FiosNumberedSaveName::FiosNumberedSaveName(const std::string &prefix) : prefix(prefix), number(-1)
{
static std::optional<std::string> _autosave_path;
static opt::optional<std::string> _autosave_path;
if (!_autosave_path) _autosave_path = FioFindDirectory(AUTOSAVE_DIR);
static std::string _prefix; ///< Static as the lambda needs access to it.