mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 04:15:31 +00:00
Fix old savegames causing the save list to not fill properly (Error in framelistener: Object '$dynamic0' not found)
Fixes #1357
This commit is contained in:
parent
e68600eda2
commit
18e24a2007
1 changed files with 5 additions and 2 deletions
|
@ -134,9 +134,12 @@ namespace MWGui
|
|||
else
|
||||
{
|
||||
// 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);
|
||||
className = class_->mName;
|
||||
if (class_)
|
||||
className = class_->mName;
|
||||
else
|
||||
className = "?"; // From an older savegame format that did not support custom classes properly.
|
||||
}
|
||||
|
||||
title << " (Level " << it->getSignature().mPlayerLevel << " " << className << ")";
|
||||
|
|
Loading…
Reference in a new issue