Skip to content

Commit

Permalink
v1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hiimjustin000 committed Jul 28, 2024
1 parent 8b82bba commit 87347ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64")
set(CMAKE_CXX_VISIBILITY_PRESET hidden)

project(IntegratedDemonlist VERSION 1.5.3)
project(IntegratedDemonlist VERSION 1.5.4)

add_library(${PROJECT_NAME} SHARED
src/IDListLayer.cpp
Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Integrated Demonlist Changelog
## v1.5.4 (2024-07-27)
- Fixed a bug where the demonlist page would sometimes crash the game

## v1.5.3 (2024-07-20)
- Highlighted the search button when searching for a demon in the demonlist page
- Added a gallery to the mod's about page
Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"geode": "3.3.0",
"geode": "3.3.1",
"gd": {
"android": "2.206",
"win": "2.206",
"mac": "2.206"
},
"version": "v1.5.3",
"version": "v1.5.4",
"id": "hiimjustin000.integrated_demonlist",
"name": "Integrated Demonlist",
"developer": "hiimjustin000",
Expand Down
2 changes: 1 addition & 1 deletion src/IDListLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void IDListLayer::populateList(std::string query) {

int IDListLayer::getMaxPage() {
auto size = m_fullSearchResults.size();
return (size % 10 == 0 ? size : size + (10 - (size % 10))) / 10 - 1;
return (size != 0 ? size % 10 == 0 ? size : size + (10 - (size % 10)) : 10) / 10 - 1;
}

void IDListLayer::loadLevelsFinished(CCArray* levels, const char*) {
Expand Down

0 comments on commit 87347ea

Please sign in to comment.