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:
parent
f11c66794b
commit
995f0e4865
@ -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…
Reference in New Issue
Block a user