Changed double-click behavior in the POI list dialog, readded and fixed error message for incorrect struct property count in SCLY

This commit is contained in:
parax0
2016-01-18 16:10:26 -07:00
parent 8611e692a9
commit 26485b1151
3 changed files with 28 additions and 16 deletions

View File

@@ -16,10 +16,20 @@ bool IPropertyTemplate::IsInVersion(u32 Version) const
TIDString IPropertyTemplate::IDString(bool FullPath) const
{
TIDString out;
if (mpParent && FullPath) out = mpParent->IDString(true) + ":";
out += TIDString::HexString(mID, true, true, 8);
return out;
if (mID != 0xFFFFFFFF)
{
TIDString out;
if (mpParent && FullPath)
{
out = mpParent->IDString(true);
if (!out.IsEmpty()) out += ":";
}
out += TIDString::HexString(mID, true, true, 8);
return out;
}
else return "";
}
CStructTemplate* IPropertyTemplate::RootStruct()