From aa567b61ac877dc777afb922971b9a52be41706d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 8 Sep 2022 13:02:51 -0400 Subject: [PATCH] v1.4.0: fixed a bug with alchemy guide in new journal window --- build.gradle | 2 +- .../shatteredpixeldungeon/windows/WndJournal.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index bb9b36634..fb9275e57 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ allprojects { appName = 'Shattered Pixel Dungeon' appPackageName = 'com.shatteredpixel.shatteredpixeldungeon' - appVersionCode = 650 + appVersionCode = 651 appVersionName = '1.4.0-ALPHA-1' appJavaCompatibility = JavaVersion.VERSION_1_8 diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndJournal.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndJournal.java index 7417362cb..b6a2e339d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndJournal.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndJournal.java @@ -329,7 +329,7 @@ public class WndJournal extends WndTabbed { private void updateList() { - if (!Document.ALCHEMY_GUIDE.isPageFound(currentPageIdx)){ + if (currentPageIdx != -1 && !Document.ALCHEMY_GUIDE.isPageFound(currentPageIdx)){ currentPageIdx = -1; }