From 70726ba2aaf58fe0e9da9c6eaabc89c14528fe58 Mon Sep 17 00:00:00 2001 From: qndel Date: Thu, 5 Sep 2019 04:26:43 +0200 Subject: [PATCH] Theme_Library cleanup --- Source/themes.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/themes.cpp b/Source/themes.cpp index 04e5b4aaf..02629f53d 100644 --- a/Source/themes.cpp +++ b/Source/themes.cpp @@ -730,9 +730,12 @@ void Theme_Library(int t) } } - if (!QuestStatus(QTYPE_ZHAR)) { + if (QuestStatus(QTYPE_ZHAR)) { + if (t == zharlib) { + return; + } PlaceThemeMonsts(t, monstrnd[leveltype]); /// BUGFIX: `leveltype - 1` - } else if (t != zharlib) { + } else { PlaceThemeMonsts(t, monstrnd[leveltype]); /// BUGFIX: `leveltype - 1` } }