1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 10:45:33 +00:00

add re-stocking items to containers (though restocking isn't implemented)

This commit is contained in:
scrawl 2012-05-17 23:22:41 +02:00
parent 9a3fd96a0c
commit 3cacc8feec

View file

@ -150,7 +150,7 @@ void MWWorld::ContainerStore::fill (const ESM::InventoryList& items, const ESMS:
continue;
}
ref.getPtr().getRefData().setCount (iter->count);
ref.getPtr().getRefData().setCount (std::abs(iter->count)); /// \todo implement item restocking (indicated by negative count)
add (ref.getPtr());
}