|
|
@ -134,9 +134,12 @@ namespace MWGui
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Find the localised name for this class from the store
|
|
|
|
// Find the localised name for this class from the store
|
|
|
|
const ESM::Class* class_ = MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().find(
|
|
|
|
const ESM::Class* class_ = MWBase::Environment::get().getWorld()->getStore().get<ESM::Class>().search(
|
|
|
|
it->getSignature().mPlayerClassId);
|
|
|
|
it->getSignature().mPlayerClassId);
|
|
|
|
|
|
|
|
if (class_)
|
|
|
|
className = class_->mName;
|
|
|
|
className = class_->mName;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
className = "?"; // From an older savegame format that did not support custom classes properly.
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
title << " (Level " << it->getSignature().mPlayerLevel << " " << className << ")";
|
|
|
|
title << " (Level " << it->getSignature().mPlayerLevel << " " << className << ")";
|
|
|
|