diff --git a/apps/openmw/mwworld/cellref.cpp b/apps/openmw/mwworld/cellref.cpp index 38f13c8a69..5229614258 100644 --- a/apps/openmw/mwworld/cellref.cpp +++ b/apps/openmw/mwworld/cellref.cpp @@ -14,6 +14,9 @@ namespace MWWorld using Ts::operator()...; }; + template + RefVisit(Ts...) -> RefVisit; + CellRef::CellRef(const ESM::CellRef& ref) : mCellRef(ESM::ReferenceVariant(ref)) { diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index 9e3fad85df..35b6dc98f3 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -1087,8 +1087,8 @@ namespace MWWorld struct Visitor { - bool operator()(const ESM::Cell* a, const ESM::Cell* b) const { return a->getCellId() == b->getCellId(); }; - bool operator()(const ESM4::Cell* a, const ESM4::Cell* b) const { return a->mId == b->mId; }; + bool operator()(const ESM::Cell* a, const ESM::Cell* b) const { return a->getCellId() == b->getCellId(); } + bool operator()(const ESM4::Cell* a, const ESM4::Cell* b) const { return a->mId == b->mId; } template bool operator()(L, R) const