GetUpgrades() not working

Mikhail shared this bug 26 days ago
Investigating

Hi. I try to get data from refs using GetUpgrades()

Use code:


Dictionary<string, float> refsUpgradeList;

var upgradeBlock = refs as IMyUpgradableBlock;

upgradeBlock?.GetUpgrades(out refsUpgradeList);

I get error: cannot convert from out Vrage.Scripting.MemorySafeTypes.MemorySafeDictionary to out System.Collection.Generic.Dictionary

Files: SCR.jpg
Leave a Comment
 
Attach a file