scrolling bugfix

This commit is contained in:
CrazyRedMachine 2024-05-12 11:37:25 +02:00
parent 4c5751a694
commit f569e9dd4b
2 changed files with 6 additions and 3 deletions

View File

@ -267,8 +267,11 @@ static void add_song_to_subcateg(uint32_t songid, subcategory_s* subcateg)
subcateg->songlist[subcateg->size-1] |= 0x00060000; // game wants this otherwise only easy difficulty will appear subcateg->songlist[subcateg->size-1] |= 0x00060000; // game wants this otherwise only easy difficulty will appear
// Also add it to the "ALL SONGS" subcategory // Also add it to the "ALL SONGS" subcategory
subcategories[0].songlist = (uint32_t *) realloc(subcategories[0].songlist, sizeof(uint32_t)*(++subcategories[0].size)); if ( !subcateg_has_songid(songid, &subcategories[0]) )
subcategories[0].songlist[subcategories[0].size-1] = subcateg->songlist[subcateg->size-1]; {
subcategories[0].songlist = (uint32_t *) realloc(subcategories[0].songlist, sizeof(uint32_t)*(++subcategories[0].size));
subcategories[0].songlist[subcategories[0].size-1] = subcateg->songlist[subcateg->size-1];
}
} }
} }

View File

@ -32,7 +32,7 @@
#include "SearchFile.h" #include "SearchFile.h"
#define PROGRAM_VERSION "1.11c" #define PROGRAM_VERSION "1.11d"
const char *g_game_dll_fn = NULL; const char *g_game_dll_fn = NULL;
const char *g_config_fn = NULL; const char *g_config_fn = NULL;