R2Northstar / NorthstarLauncher

Launcher used to modify Titanfall 2 to allow mods to be loaded
MIT License
271 stars 125 forks source link

Add missing object check in mod manager #731

Closed Jan200101 closed 3 weeks ago

Jan200101 commented 3 weeks ago

HasMember asserts IsObject() internally. In release builds this is not an issue but this does not work on Debug builds.

m_bHasEnabledModsCfg is the output of m_EnabledModsCfg.IsObject() and this pattern exists in other places, so I think this is a "good enough" solution at the moment (though I consider this file to smell a bit)