mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 06:15:32 +00:00
Protect assignment operator from this == &src case
This commit is contained in:
parent
33da0af1d1
commit
80ee1b55ea
1 changed files with 3 additions and 0 deletions
|
@ -120,6 +120,9 @@ MWWorld::InventoryStore::InventoryStore (const InventoryStore& store)
|
|||
|
||||
MWWorld::InventoryStore& MWWorld::InventoryStore::operator= (const InventoryStore& store)
|
||||
{
|
||||
if (this == &store)
|
||||
return *this;
|
||||
|
||||
mListener = store.mListener;
|
||||
mInventoryListener = store.mInventoryListener;
|
||||
mMagicEffects = store.mMagicEffects;
|
||||
|
|
Loading…
Reference in a new issue