mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:56:39 +00:00 
			
		
		
		
	Uninitialized basenode fix
This commit is contained in:
		
							parent
							
								
									15bdb7db01
								
							
						
					
					
						commit
						c90125f936
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -37,7 +37,7 @@ namespace MWWorld
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    RefData::RefData()
 | 
			
		||||
    : mBaseNode(0), mHasLocals (false), mEnabled (true), mCount (1), mCustomData (0), mChanged(false), mDeleted(false)
 | 
			
		||||
    : mBaseNode(0), mBase(0), mHasLocals (false), mEnabled (true), mCount (1), mCustomData (0), mChanged(false), mDeleted(false)
 | 
			
		||||
    {
 | 
			
		||||
        for (int i=0; i<3; ++i)
 | 
			
		||||
        {
 | 
			
		||||
| 
						 | 
				
			
			@ -48,7 +48,7 @@ namespace MWWorld
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    RefData::RefData (const ESM::CellRef& cellRef)
 | 
			
		||||
    : mBaseNode(0), mHasLocals (false), mEnabled (true), mCount (1), mPosition (cellRef.mPos),
 | 
			
		||||
    : mBaseNode(0), mBase(0), mHasLocals (false), mEnabled (true), mCount (1), mPosition (cellRef.mPos),
 | 
			
		||||
      mCustomData (0),
 | 
			
		||||
      mChanged(false), // Loading from ESM/ESP files -> assume unchanged
 | 
			
		||||
      mDeleted(false)
 | 
			
		||||
| 
						 | 
				
			
			@ -59,7 +59,7 @@ namespace MWWorld
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    RefData::RefData (const ESM::ObjectState& objectState)
 | 
			
		||||
    : mBaseNode (0), mHasLocals (false), mEnabled (objectState.mEnabled != 0),
 | 
			
		||||
    : mBaseNode (0), mBase(0), mHasLocals (false), mEnabled (objectState.mEnabled != 0),
 | 
			
		||||
      mCount (objectState.mCount), mPosition (objectState.mPosition), mCustomData (0),
 | 
			
		||||
      mChanged(true), // Loading from a savegame -> assume changed
 | 
			
		||||
      mDeleted(false)
 | 
			
		||||
| 
						 | 
				
			
			@ -69,7 +69,7 @@ namespace MWWorld
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    RefData::RefData (const RefData& refData)
 | 
			
		||||
    : mBaseNode(0), mCustomData (0)
 | 
			
		||||
    : mBaseNode(0), mBase(0), mCustomData (0)
 | 
			
		||||
    {
 | 
			
		||||
        try
 | 
			
		||||
        {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue