diff options
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/inventory.h b/src/inventory.h index b7a93553d..2828d3e5a 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -323,11 +323,14 @@ public: return false; } - inline void setModified(bool dirty) + inline void setModified(bool dirty = true) { m_dirty = dirty; - for (const auto &list : m_lists) - list->setModified(dirty); + // Set all as handled + if (!dirty) { + for (const auto &list : m_lists) + list->setModified(dirty); + } } private: // -1 if not found |