1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-07 06:11:32 +00:00

Linux compilation

This commit is contained in:
florent.teppe 2022-07-23 18:45:30 +02:00
parent 59ebee634b
commit a7207a9220

View file

@ -127,12 +127,14 @@ namespace
} }
} }
}
template <int storeIndex> template <int storeIndex>
struct StoreIndexToRecordType { struct StoreIndexToRecordType {
typedef void recordType; typedef void recordType;
}; };
}
static int sRecordTypeCounter = 0; static int sRecordTypeCounter = 0;
@ -368,7 +370,7 @@ namespace MWWorld
assert(sRecordTypeCounter == sRecordIndexCount); //Otherwise something wen wrong with assigning index to stores assert(sRecordTypeCounter == sRecordIndexCount); //Otherwise something wen wrong with assigning index to stores
constexpr_for<0, sRecordIndexCount,1> ([this](auto storeIndex) 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); mStoreImp = std::make_unique<ESMStoreImp>(*this);