diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index a6233acd0..7ed494a32 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -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().find(Npc()->mClass); + MWBase::Environment::get().getMechanicsManager()->setPlayerClass(klass); + const ESM::Class *_klass = MWBase::Environment::get().getWorld()->getStore().get().find(klass.mId); if (_klass) MWBase::Environment::get().getWindowManager()->setPlayerClass(klass); }