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;
                 ^
macos_ci_fix
elsid 1 year ago
parent f11c66794b
commit 995f0e4865
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -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;

Loading…
Cancel
Save