Mend alloc bug introduced testing 'New colors last'

Didn't mean to stop alloc'ing space for the colors!
This commit is contained in:
Bill Kendrick 2018-12-18 22:45:52 -08:00
parent 5d9ceca076
commit f3965941aa

View file

@ -18682,13 +18682,10 @@ static int do_new_dialog(void)
/* (Re)allocate space for the information about these files: */
tot = num_files_in_dirs;
/* And colors... */
if (!new_colors_last) {
tot += NUM_COLORS;
}
tot += NUM_COLORS;
thumbs = (SDL_Surface * *)malloc(sizeof(SDL_Surface *) * tot);
d_places = (int *)malloc(sizeof(int) * tot);