Config: Properly clamp rgssVersion to allowed range
This commit is contained in:
		
							parent
							
								
									3da785b293
								
							
						
					
					
						commit
						1a98760b31
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -226,6 +226,8 @@ void Config::read(int argc, char *argv[])
 | 
			
		|||
#undef PO_DESC
 | 
			
		||||
#undef PO_DESC_ALL
 | 
			
		||||
 | 
			
		||||
	rgssVersion = clamp(rgssVersion, 0, 3);
 | 
			
		||||
 | 
			
		||||
	SE.sourceCount = clamp(SE.sourceCount, 1, 64);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue