Skip to content

Commit

Permalink
Hmm...
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Aug 25, 2020
1 parent 88227e4 commit c51fa3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aurora/2dareg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ const TwoDAFile &TwoDARegistry::get2DA(const Common::UString &name) {
return *twoda->second;
}

std::unique_ptr<TwoDAFile> new2DAF = load2DA(name);
warning("NOT FOUND \"%s\", load", name.c_str());
// Entry doesn't exist => load and add
const TwoDAFile *new2DA = (_twodas[name] = load2DA(name)).get();
const TwoDAFile *new2DA = (_twodas[name] = std::move(new2DAF)).get();
assert(new2DA != nullptr);
return *new2DA;
}
Expand Down

0 comments on commit c51fa3e

Please sign in to comment.