mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-20 07:23:51 +00:00
Fix my stupid epic fail
This commit is contained in:
parent
e9dce26f38
commit
534ef527b9
1 changed files with 2 additions and 2 deletions
|
@ -594,8 +594,8 @@ void LocalPlayer::SetClass()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MWBase::Environment::get().getMechanicsManager()->setPlayerClass(Npc()->mClass);
|
MWBase::Environment::get().getMechanicsManager()->setPlayerClass(klass);
|
||||||
const ESM::Class *_klass = MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find(Npc()->mClass);
|
const ESM::Class *_klass = MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find(klass.mId);
|
||||||
if (_klass)
|
if (_klass)
|
||||||
MWBase::Environment::get().getWindowManager()->setPlayerClass(klass);
|
MWBase::Environment::get().getWindowManager()->setPlayerClass(klass);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue