Fixed a bug where a server having less characters than you could fit on your screen would crash the game.
This commit is contained in:
		
							parent
							
								
									2aec9710e5
								
							
						
					
					
						commit
						d36fdace38
					
				@ -186,7 +186,12 @@ void Courtroom::character_loading_finished()
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    filter_character_list();
 | 
					    filter_character_list();
 | 
				
			||||||
    put_button_in_place(0, max_chars_on_page);
 | 
					
 | 
				
			||||||
 | 
					    int chars_on_page = max_chars_on_page;
 | 
				
			||||||
 | 
					    if (ui_char_button_list_filtered.size() < max_chars_on_page)
 | 
				
			||||||
 | 
					        chars_on_page = ui_char_button_list_filtered.size();
 | 
				
			||||||
 | 
					    put_button_in_place(0, chars_on_page);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void Courtroom::filter_character_list()
 | 
					void Courtroom::filter_character_list()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user