1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-04-09 04:06:42 +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) void InventoryState::load(ESMReader& esm)
{ {
// obsolete // obsolete
uint32_t index = 0;
while (esm.isNextSub("IOBJ")) while (esm.isNextSub("IOBJ"))
{ {
esm.skipHT<int32_t>(); esm.skipHT<int32_t>();
@ -29,8 +28,6 @@ namespace ESM
continue; continue;
mItems.push_back(state); mItems.push_back(state);
++index;
} }
uint32_t itemsCount = 0; uint32_t itemsCount = 0;