1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 15:15:31 +00:00

Fix my stupid epic fail

This commit is contained in:
Koncord 2016-09-02 07:33:01 +08:00
parent e9dce26f38
commit 534ef527b9

View file

@ -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);
}