mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +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
@ -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…
x
Reference in New Issue
Block a user