mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 07:56:37 +00:00 
			
		
		
		
	Register copied Spells with SpellList
This commit is contained in:
		
							parent
							
								
									3736cd45cd
								
							
						
					
					
						commit
						c2580d60e9
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		|  | @ -24,6 +24,14 @@ namespace MWMechanics | |||
|     { | ||||
|     } | ||||
| 
 | ||||
|     Spells::Spells(const Spells& spells) : mSpellList(spells.mSpellList), mSpells(spells.mSpells), | ||||
|         mSelectedSpell(spells.mSelectedSpell), mUsedPowers(spells.mUsedPowers), | ||||
|         mSpellsChanged(spells.mSpellsChanged), mEffects(spells.mEffects), mSourcedEffects(spells.mSourcedEffects) | ||||
|     { | ||||
|         if(mSpellList) | ||||
|             mSpellList->addListener(this); | ||||
|     } | ||||
| 
 | ||||
|     std::map<const ESM::Spell*, SpellParams>::const_iterator Spells::begin() const | ||||
|     { | ||||
|         return mSpells.begin(); | ||||
|  |  | |||
|  | @ -57,6 +57,10 @@ namespace MWMechanics | |||
| 
 | ||||
|             Spells(); | ||||
| 
 | ||||
|             Spells(const Spells&); | ||||
| 
 | ||||
|             Spells(const Spells&&) = delete; | ||||
| 
 | ||||
|             ~Spells(); | ||||
| 
 | ||||
|             static bool hasCorprusEffect(const ESM::Spell *spell); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue