1
0
Fork 1
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:
scrawl 2014-05-28 21:08:20 +02:00
parent e68600eda2
commit 18e24a2007

View file

@ -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 << ")";