Use static lifetime for constant array
This commit is contained in:
		
							parent
							
								
									30465691ae
								
							
						
					
					
						commit
						7017ca1c53
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -500,7 +500,7 @@ onTileA4(Reader &reader, int16_t tileID,
 | 
			
		|||
	Vec2i orig = blitsA4[0].dst;
 | 
			
		||||
	tileID -= 0x1700;
 | 
			
		||||
 | 
			
		||||
	const int offY[] = { 0, 3, 5, 8, 10, 13 };
 | 
			
		||||
	static const int offY[] = { 0, 3, 5, 8, 10, 13 };
 | 
			
		||||
 | 
			
		||||
	int patternID  = tileID % 0x30;
 | 
			
		||||
	int autotileID = tileID / 0x30;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue