mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 16:53:55 +00:00
Use player's base name for profiles
This commit is contained in:
parent
23e6d52844
commit
4fdef94034
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ void MWState::StateManager::saveGame (const std::string& description, const Slot
|
|||
|
||||
profile.mContentFiles = world.getContentFiles();
|
||||
|
||||
profile.mPlayerName = player.getClass().getName (player);
|
||||
profile.mPlayerName = player.get<ESM::NPC>()->mBase->mName;
|
||||
profile.mPlayerLevel = player.getClass().getNpcStats (player).getLevel();
|
||||
|
||||
std::string classId = player.get<ESM::NPC>()->mBase->mClass;
|
||||
|
@ -438,7 +438,7 @@ void MWState::StateManager::deleteGame(const MWState::Character *character, cons
|
|||
MWState::Character *MWState::StateManager::getCurrentCharacter (bool create)
|
||||
{
|
||||
MWWorld::Ptr player = MWBase::Environment::get().getWorld()->getPlayerPtr();
|
||||
std::string name = player.getClass().getName(player);
|
||||
std::string name = player.get<ESM::NPC>()->mBase->mName;
|
||||
|
||||
return mCharacterManager.getCurrentCharacter (create, name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue