Fix Load screen with no parties in save folder (#740)
This commit is contained in:
@@ -1889,7 +1889,7 @@ class cFilePicker {
|
|||||||
save_files.resize(save_file_mtimes.size());
|
save_files.resize(save_file_mtimes.size());
|
||||||
|
|
||||||
cStack& stk = get_stack();
|
cStack& stk = get_stack();
|
||||||
int num_pages = ceil((float)save_file_mtimes.size() / parties_per_page);
|
int num_pages = max(1, ceil((float)save_file_mtimes.size() / parties_per_page));
|
||||||
stk.setPageCount(num_pages);
|
stk.setPageCount(num_pages);
|
||||||
// HACK: For some reason which should be fixed, the buttons and labels on subsequent pages
|
// HACK: For some reason which should be fixed, the buttons and labels on subsequent pages
|
||||||
// aren't getting text on the static buttons and labels
|
// aren't getting text on the static buttons and labels
|
||||||
|
Reference in New Issue
Block a user