diff --git a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h index 1ffdeaa4..f1f04802 100644 --- a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h +++ b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpCommon.h @@ -104,10 +104,10 @@ struct NetAgeInfo { wchar_t ageInstName[kMaxAgeNameLength]; wchar_t ageUserName[kMaxAgeNameLength]; wchar_t ageDesc[1024]; - uint32_t ageSequenceNumber; - uint32_t ageLanguage; - uint32_t population; // only used with GetPublicAgeList query results - uint32_t currentPopulation; // only used with GetPublicAgeList query results + uint32_t ageSequenceNumber; + uint32_t ageLanguage; + uint32_t population; // only used with GetPublicAgeList query results + uint32_t currentPopulation; // only used with GetPublicAgeList query results }; /***************************************************************************** diff --git a/Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp b/Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp index 3da7f1e6..f183b208 100644 --- a/Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp +++ b/Sources/Plasma/PubUtilLib/plNetCommon/plNetServerSessionInfo.cpp @@ -167,20 +167,14 @@ void plAgeInfoStruct::CopyFrom( const plVaultAgeInfoNode * node ) //============================================================================ void plAgeInfoStruct::CopyFrom(const NetAgeInfo & info) { - char tmp[MAX_PATH]; - - // Filename - StrToAnsi(tmp, info.ageFilename, arrsize(tmp)); - SetAgeFilename(tmp); - // InstanceName - StrToAnsi(tmp, info.ageInstName, arrsize(tmp)); - SetAgeInstanceName(tmp); - // UserDefinedName - StrToAnsi(tmp, info.ageUserName, arrsize(tmp)); - SetAgeUserDefinedName(tmp); - // Description - StrToAnsi(tmp, info.ageDesc, arrsize(tmp)); - SetAgeDescription(tmp); + // Filename + SetAgeFilename(plString::FromWchar(info.ageFilename)); + // InstanceName + SetAgeInstanceName(plString::FromWchar(info.ageInstName)); + // UserDefinedName + SetAgeUserDefinedName(plString::FromWchar(info.ageUserName)); + // Description + SetAgeDescription(plString::FromWchar(info.ageDesc)); plUUID inst(info.ageInstId); SetAgeInstanceGuid(&inst);