1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00

Fix unused-but-set-variable warning

components/esm3/inventorystate.cpp:18:18: warning: variable 'index' set but not used [-Wunused-but-set-variable]
        uint32_t index = 0;
                 ^
This commit is contained in:
elsid 2023-12-22 14:43:34 +01:00
parent f11c66794b
commit 995f0e4865
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

@ -15,7 +15,6 @@ namespace ESM
void InventoryState::load(ESMReader& esm)
{
// obsolete
uint32_t index = 0;
while (esm.isNextSub("IOBJ"))
{
esm.skipHT<int32_t>();
@ -29,8 +28,6 @@ namespace ESM
continue;
mItems.push_back(state);
++index;
}
uint32_t itemsCount = 0;