diff --git a/apps/opencs/view/render/instancemode.cpp b/apps/opencs/view/render/instancemode.cpp index 4eb9ea388..8b644edbe 100644 --- a/apps/opencs/view/render/instancemode.cpp +++ b/apps/opencs/view/render/instancemode.cpp @@ -370,8 +370,6 @@ void CSVRender::InstanceMode::dropEvent (QDropEvent* event) selection.add (CSMWorld::CellCoordinates::fromId (cellId).first); paged->setCellSelection (selection); } - - noCell = false; } } else if (CSVRender::PagedWorldspaceWidget *paged = diff --git a/apps/openmw/mwgui/levelupdialog.cpp b/apps/openmw/mwgui/levelupdialog.cpp index e64eb510e..1434455b2 100644 --- a/apps/openmw/mwgui/levelupdialog.cpp +++ b/apps/openmw/mwgui/levelupdialog.cpp @@ -135,27 +135,6 @@ namespace MWGui MWMechanics::CreatureStats& creatureStats = player.getClass().getCreatureStats(player); MWMechanics::NpcStats& pcStats = player.getClass().getNpcStats(player); - const ESM::NPC *playerData = player.get()->mBase; - - // set class image - const ESM::Class *cls = - world->getStore().get().find(playerData->mClass); - - if(world->getStore().get().isDynamic(cls->mId)) - { - // Choosing Stealth specialization and Speed/Agility as attributes, if possible. Otherwise fall back to first class found. - MWWorld::SharedIterator it = world->getStore().get().begin(); - for(; it != world->getStore().get().end(); ++it) - { - if(it->mData.mIsPlayable && it->mData.mSpecialization == 2 && it->mData.mAttribute[0] == 4 && it->mData.mAttribute[1] == 3) - break; - } - if (it == world->getStore().get().end()) - it = world->getStore().get().begin(); - if (it != world->getStore().get().end()) - cls = &*it; - } - setClassImage(mClassImage, getLevelupClassImage(pcStats.getSkillIncreasesForSpecialization(0), pcStats.getSkillIncreasesForSpecialization(1), pcStats.getSkillIncreasesForSpecialization(2))); diff --git a/components/files/escape.hpp b/components/files/escape.hpp index 3b016a12d..2017c2ed2 100644 --- a/components/files/escape.hpp +++ b/components/files/escape.hpp @@ -193,4 +193,4 @@ namespace Files std::istream & operator>> (std::istream & istream, EscapePath & escapePath); } /* namespace Files */ -#endif /* COMPONENTS_FILES_ESCAPE_HPP */ \ No newline at end of file +#endif /* COMPONENTS_FILES_ESCAPE_HPP */