From db2f97f308730c45919e8a3dec4e33ab1c8f8f21 Mon Sep 17 00:00:00 2001 From: Allofich Date: Mon, 27 Mar 2017 03:47:17 +0900 Subject: [PATCH] Fix shadowing warning --- apps/openmw/mwrender/objects.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwrender/objects.cpp b/apps/openmw/mwrender/objects.cpp index ab627b6f6..d4cbf25fe 100644 --- a/apps/openmw/mwrender/objects.cpp +++ b/apps/openmw/mwrender/objects.cpp @@ -149,9 +149,9 @@ void Objects::removeCell(const MWWorld::CellStore* store) if (ptr.getClass().isNpc() && ptr.getRefData().getCustomData()) { - MWWorld::InventoryStore& store = ptr.getClass().getInventoryStore(ptr); - store.setInvListener(NULL, ptr); - store.setContListener(NULL); + MWWorld::InventoryStore& invStore = ptr.getClass().getInventoryStore(ptr); + invStore.setInvListener(NULL, ptr); + invStore.setContListener(NULL); } mObjects.erase(iter++);