mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 01:45:34 +00:00
post merge fix: bringing code more in line with our naming standards and fixing an invalid name (names starting with double underscore are reserved in C++)
This commit is contained in:
parent
c0260697c2
commit
25d9918765
1 changed files with 23 additions and 25 deletions
|
@ -253,16 +253,14 @@ namespace MWScript
|
|||
{
|
||||
MWBase::World *world = MWBase::Environment::get().getWorld();
|
||||
std::string race = world->getPlayer().getPlayer().get<ESM::NPC>()->mBase->mRace;
|
||||
const ESM::Race* _race = world->getStore().get<ESM::Race>().find(race);
|
||||
return _race->mName;
|
||||
return world->getStore().get<ESM::Race>().find(race)->mName;
|
||||
}
|
||||
|
||||
std::string InterpreterContext::getPCClass() const
|
||||
{
|
||||
MWBase::World *world = MWBase::Environment::get().getWorld();
|
||||
std::string _class = world->getPlayer().getPlayer().get<ESM::NPC>()->mBase->mClass;
|
||||
const ESM::Class* __class = world->getStore().get<ESM::Class>().find(_class);
|
||||
return __class->mName;
|
||||
std::string class_ = world->getPlayer().getPlayer().get<ESM::NPC>()->mBase->mClass;
|
||||
return world->getStore().get<ESM::Class>().find(class_)->mName;
|
||||
}
|
||||
|
||||
std::string InterpreterContext::getPCRank() const
|
||||
|
|
Loading…
Reference in a new issue