mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 21:45:38 +00:00
various fixes
This commit is contained in:
parent
9f1919a230
commit
be46f5a59c
1 changed files with 6 additions and 1 deletions
|
@ -44,13 +44,17 @@ MWWorld::InventoryStore::InventoryStore() : mMagicEffectsUpToDate (false)
|
|||
}
|
||||
|
||||
MWWorld::InventoryStore::InventoryStore (const InventoryStore& store)
|
||||
: ContainerStore (store), mMagicEffectsUpToDate (false)
|
||||
: ContainerStore (store)
|
||||
{
|
||||
mMagicEffects = store.mMagicEffects;
|
||||
mMagicEffectsUpToDate = store.mMagicEffectsUpToDate;
|
||||
copySlots (store);
|
||||
}
|
||||
|
||||
MWWorld::InventoryStore& MWWorld::InventoryStore::operator= (const InventoryStore& store)
|
||||
{
|
||||
mMagicEffects = store.mMagicEffects;
|
||||
mMagicEffectsUpToDate = store.mMagicEffectsUpToDate;
|
||||
ContainerStore::operator= (store);
|
||||
mSlots.clear();
|
||||
copySlots (store);
|
||||
|
@ -236,6 +240,7 @@ const MWMechanics::MagicEffects& MWWorld::InventoryStore::getMagicEffects()
|
|||
|
||||
void MWWorld::InventoryStore::flagAsModified()
|
||||
{
|
||||
ContainerStore::flagAsModified();
|
||||
mMagicEffectsUpToDate = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue