Browse Source

Ensure we don't try to get localized values for null objectnames

(cherry picked from commit b00c7729cc)
working_subtitles
ZarothYe 3 years ago committed by rarified
parent
commit
8291326614
  1. 2
      Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp

2
Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp

@ -536,7 +536,7 @@ inline plKeyImp* IFindKeyLocalized(const plUoid& uoid, plRegistryPageNode* page)
const char* objectName = uoid.GetObjectName();
// If we're running localized, try to find a localized version first
if (plLocalization::IsLocalized())
if (objectName != nullptr && plLocalization::IsLocalized())
{
char localName[256];
if (plLocalization::GetLocalized(objectName, localName))

Loading…
Cancel
Save