From 584ae30213b27c37b2534cb2036406af7193c0be Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 15 Jun 2012 10:09:46 +0200 Subject: [PATCH] don't show diseases and curses in the spell list --- apps/openmw/mwgui/spellwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/spellwindow.cpp b/apps/openmw/mwgui/spellwindow.cpp index d34ce68d9..909798f1a 100644 --- a/apps/openmw/mwgui/spellwindow.cpp +++ b/apps/openmw/mwgui/spellwindow.cpp @@ -144,9 +144,11 @@ namespace MWGui powers.push_back(*it); it = spellList.erase(it); } - else if (spell->data.type == ESM::Spell::ST_Ability) + else if (spell->data.type == ESM::Spell::ST_Ability + || spell->data.type == ESM::Spell::ST_Blight + || spell->data.type == ESM::Spell::ST_Curse + || spell->data.type == ESM::Spell::ST_Disease) { - // abilities are always active and don't show in the spell window. it = spellList.erase(it); } else