From 5c8c079718ad6179d79fc29b4fd1b9c0f4993d01 Mon Sep 17 00:00:00 2001 From: Capostrophic Date: Tue, 4 Dec 2018 16:47:47 +0300 Subject: [PATCH] Fix incorrect event argument which messed with hidden light pointers --- apps/openmw/mwworld/inventorystore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/inventorystore.cpp b/apps/openmw/mwworld/inventorystore.cpp index 6fe1d0c73..8b35d8dcc 100644 --- a/apps/openmw/mwworld/inventorystore.cpp +++ b/apps/openmw/mwworld/inventorystore.cpp @@ -150,7 +150,7 @@ MWWorld::ContainerStoreIterator MWWorld::InventoryStore::add(const Ptr& itemPtr, } if (mListener) - mListener->itemAdded(itemPtr, count); + mListener->itemAdded(*retVal, count); return retVal; }