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:
parent
e9dce26f38
commit
534ef527b9
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue