From e961ac6f7c2a04c2c034162d1f15abb518ea4014 Mon Sep 17 00:00:00 2001 From: "florent.teppe" Date: Tue, 6 Sep 2022 23:30:51 +0200 Subject: [PATCH] function doesn't need to return int --- apps/openmw/mwworld/esmstore.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/openmw/mwworld/esmstore.cpp b/apps/openmw/mwworld/esmstore.cpp index 222dec2d9d..6f7f6c8a00 100644 --- a/apps/openmw/mwworld/esmstore.cpp +++ b/apps/openmw/mwworld/esmstore.cpp @@ -147,7 +147,7 @@ namespace MWWorld IDMap mStaticIds; template - static int assignStoreToIndex(ESMStore& stores, Store& store) + static void assignStoreToIndex(ESMStore& stores, Store& store) { const std::size_t storeIndex = ESMStore::getTypeIndex(); if (stores.mStores.size() <= storeIndex) @@ -165,7 +165,6 @@ namespace MWWorld stores.mStoreImp->mRecNameToStore[recName] = &store; } } - return 0; } };