Fix CASEA failing to validate packets with exactly six arguments (#521)
This commit is contained in:
		
							parent
							
								
									33cf6dea26
								
							
						
					
					
						commit
						a5e1cc4173
					
				@ -616,7 +616,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet)
 | 
			
		||||
      w_courtroom->mod_called(f_contents.at(0));
 | 
			
		||||
  }
 | 
			
		||||
  else if (header == "CASEA") {
 | 
			
		||||
    if (courtroom_constructed && f_contents.size() > 6)
 | 
			
		||||
    if (courtroom_constructed && f_contents.size() >= 6)
 | 
			
		||||
      w_courtroom->case_called(f_contents.at(0), f_contents.at(1) == "1",
 | 
			
		||||
                               f_contents.at(2) == "1", f_contents.at(3) == "1",
 | 
			
		||||
                               f_contents.at(4) == "1",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user