1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-28 22:39:42 +00:00

function doesn't need to return int

This commit is contained in:
florent.teppe 2022-09-06 23:30:51 +02:00
parent b1d5d604be
commit e961ac6f7c

View file

@ -147,7 +147,7 @@ namespace MWWorld
IDMap mStaticIds; IDMap mStaticIds;
template<typename T> template<typename T>
static int assignStoreToIndex(ESMStore& stores, Store<T>& store) static void assignStoreToIndex(ESMStore& stores, Store<T>& store)
{ {
const std::size_t storeIndex = ESMStore::getTypeIndex<T>(); const std::size_t storeIndex = ESMStore::getTypeIndex<T>();
if (stores.mStores.size() <= storeIndex) if (stores.mStores.size() <= storeIndex)
@ -165,7 +165,6 @@ namespace MWWorld
stores.mStoreImp->mRecNameToStore[recName] = &store; stores.mStoreImp->mRecNameToStore[recName] = &store;
} }
} }
return 0;
} }
}; };