Fix null deref
This commit is contained in:
		
							parent
							
								
									73d5cb5bad
								
							
						
					
					
						commit
						b5afeadb5b
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -82,6 +82,9 @@ struct SpritePrivate
 | 
			
		|||
 | 
			
		||||
	void recomputeBushDepth()
 | 
			
		||||
	{
 | 
			
		||||
		if (!bitmap)
 | 
			
		||||
			return;
 | 
			
		||||
 | 
			
		||||
		/* Calculate effective (normalized) bush depth */
 | 
			
		||||
		float texBushDepth = (bushDepth / trans.getScale().y) -
 | 
			
		||||
		                     (srcRect->y + srcRect->height) +
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue