Browse Source

Fix for crash caused by Objects without a name when running localized.

Joseph Davies 14 years ago
parent
commit
0f1b397d16
  1. 2
      Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp

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

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

Loading…
Cancel
Save