From 4c5751a6940fc6877396fb9de425c9cbe5cbef9b Mon Sep 17 00:00:00 2001 From: CrazyRedMachine Date: Sat, 4 May 2024 20:15:25 +0200 Subject: [PATCH] fix subcategories scrolling bug --- popnhax/custom_categs.cc | 2 +- popnhax/dllmain.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/popnhax/custom_categs.cc b/popnhax/custom_categs.cc index b292fcd..ae107bf 100644 --- a/popnhax/custom_categs.cc +++ b/popnhax/custom_categs.cc @@ -250,7 +250,7 @@ static bool subcateg_has_songid(uint32_t songid, subcategory_s* subcateg) { for ( uint32_t i = 0; i < subcateg->size; i++ ) { - if ( subcateg->songlist[i] == songid ) + if ( (subcateg->songlist[i] & 0x0000FFFF) == songid ) return true; } return false; diff --git a/popnhax/dllmain.cc b/popnhax/dllmain.cc index cedda86..be17577 100644 --- a/popnhax/dllmain.cc +++ b/popnhax/dllmain.cc @@ -32,7 +32,7 @@ #include "SearchFile.h" -#define PROGRAM_VERSION "1.11b" +#define PROGRAM_VERSION "1.11c" const char *g_game_dll_fn = NULL; const char *g_config_fn = NULL;