Respect gdt parents when converting to infostring

This commit is contained in:
Jan
2021-03-28 12:21:47 +02:00
parent 579c0747d0
commit a42f75c85e
10 changed files with 37 additions and 18 deletions

View File

@ -552,7 +552,7 @@ bool AssetLoaderWeapon::LoadFromGdt(const std::string& assetName, IGdtQueryable*
return false;
InfoString infoString;
if(!infoString.FromGdtProperties(ObjConstants::INFO_STRING_PREFIX_WEAPON, *gdtEntry))
if(!infoString.FromGdtProperties(*gdtEntry))
{
std::cout << "Failed to read weapon gdt entry: \"" << assetName << "\"" << std::endl;
return true;