diff --git a/apps/openmw/mwworld/cellstore.cpp b/apps/openmw/mwworld/cellstore.cpp index 486425156b..bfd7cf966c 100644 --- a/apps/openmw/mwworld/cellstore.cpp +++ b/apps/openmw/mwworld/cellstore.cpp @@ -41,7 +41,6 @@ #include #include - #include "../mwbase/environment.hpp" #include "../mwbase/luamanager.hpp" #include "../mwbase/mechanicsmanager.hpp" @@ -152,7 +151,7 @@ namespace // Deleted reference that did not come from a content file -> ignore continue; } - using StateType = RecordToState::StateType; + using StateType = typename RecordToState::StateType; StateType state; iter->save (state); @@ -209,7 +208,7 @@ namespace { const MWWorld::ESMStore& esmStore = MWBase::Environment::get().getWorld()->getStore(); - using StateType = RecordToState::StateType; + using StateType = typename RecordToState::StateType; StateType state; state.mRef = cref; state.load(reader); @@ -245,7 +244,7 @@ namespace } else if(state.mVersion < 20) { - if constexpr (std::is_same_v|| std::is_same_v) + if constexpr (std::is_same_v || std::is_same_v) MWWorld::convertStats(state.mCreatureStats); }