1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-23 06:11:33 +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>();
assert(ESMStore::getTypeIndex<T>() == storeIndex);
if (stores.mStores.size() <= storeIndex)
stores.mStores.resize(storeIndex + 1);
const std::size_t index_t(storeIndex)
if (stores.mStores.size() <= index_t)
stores.mStores.resize(index_t + 1);
assert(&store == &std::get<Store<T>>(stores.mStoreImp->mStores));