From 52b822146075632b0decd873a072c1e95d79b7a4 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 8 May 2022 22:51:39 +0200 Subject: [PATCH] [vanilla] Correct number of monster in libraries --- Source/themes.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/themes.cpp b/Source/themes.cpp index 2818f7edf..4d6bdc19a 100644 --- a/Source/themes.cpp +++ b/Source/themes.cpp @@ -720,14 +720,10 @@ void Theme_Library(int t) } } - if (Quests[Q_ZHAR].IsAvailable()) { - if (t == zharlib) { - return; - } - PlaceThemeMonsts(t, monstrnd[leveltype]); /// BUGFIX: `leveltype - 1` - } else { - PlaceThemeMonsts(t, monstrnd[leveltype]); /// BUGFIX: `leveltype - 1` + if (Quests[Q_ZHAR].IsAvailable() && t == zharlib) { + return; } + PlaceThemeMonsts(t, monstrnd[leveltype - 1]); } /**