mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
Linux compilation
This commit is contained in:
parent
59ebee634b
commit
a7207a9220
@ -127,13 +127,15 @@ namespace
|
||||
}
|
||||
}
|
||||
|
||||
template <int storeIndex>
|
||||
struct StoreIndexToRecordType {
|
||||
|
||||
typedef void recordType;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
template <int storeIndex>
|
||||
struct StoreIndexToRecordType {
|
||||
|
||||
typedef void recordType;
|
||||
};
|
||||
|
||||
static int sRecordTypeCounter = 0;
|
||||
|
||||
#define OPENMW_ESM_ADD_STORE_TYPE(__Type, __ID_NUM) template<> const int MWWorld::SRecordType<__Type>::sStoreIndex = sRecordTypeCounter ++; \
|
||||
@ -368,7 +370,7 @@ namespace MWWorld
|
||||
assert(sRecordTypeCounter == sRecordIndexCount); //Otherwise something wen wrong with assigning index to stores
|
||||
constexpr_for<0, sRecordIndexCount,1> ([this](auto storeIndex)
|
||||
{
|
||||
ESMStoreImp::createStore<StoreIndexToRecordType<storeIndex>::recordType>(*this);
|
||||
ESMStoreImp::createStore<typename StoreIndexToRecordType<storeIndex>::recordType>(*this);
|
||||
});
|
||||
|
||||
mStoreImp = std::make_unique<ESMStoreImp>(*this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user