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

linux compile

This commit is contained in:
florent.teppe 2022-09-03 11:47:38 +02:00
parent ee06cccbe1
commit cbb9b65286

View file

@ -272,8 +272,9 @@ namespace MWWorld
{ {
const int storeIndex = ESMStore::getTypeIndex<T>(); const int storeIndex = ESMStore::getTypeIndex<T>();
assert(ESMStore::getTypeIndex<T>() == storeIndex); assert(ESMStore::getTypeIndex<T>() == storeIndex);
if (stores.mStores.size() <= storeIndex) const std::size_t index_t(storeIndex)
stores.mStores.resize(storeIndex + 1); if (stores.mStores.size() <= index_t)
stores.mStores.resize(index_t + 1);
assert(&store == &std::get<Store<T>>(stores.mStoreImp->mStores)); assert(&store == &std::get<Store<T>>(stores.mStoreImp->mStores));