Fix my stupid epic fail

pull/58/head
Koncord 8 years ago
parent e9dce26f38
commit 534ef527b9

@ -594,8 +594,8 @@ void LocalPlayer::SetClass()
}
else
{
MWBase::Environment::get().getMechanicsManager()->setPlayerClass(Npc()->mClass);
const ESM::Class *_klass = MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find(Npc()->mClass);
MWBase::Environment::get().getMechanicsManager()->setPlayerClass(klass);
const ESM::Class *_klass = MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find(klass.mId);
if (_klass)
MWBase::Environment::get().getWindowManager()->setPlayerClass(klass);
}

Loading…
Cancel
Save