mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +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)
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user