mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-19 23:11:33 +00:00
Skip zero links to ArmorAddons
This commit is contained in:
parent
6c01ce2672
commit
4c6e081da3
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@ namespace MWRender
|
|||
auto findArmorAddons = [&](const ESM4::Armor* armor) {
|
||||
for (ESM::FormId armaId : armor->mAddOns)
|
||||
{
|
||||
if (armaId.isZeroOrUnset())
|
||||
continue;
|
||||
const ESM4::ArmorAddon* arma = store->get<ESM4::ArmorAddon>().search(armaId);
|
||||
if (!arma)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue