1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-22 03:40:49 +00:00

Skip zero links to ArmorAddons

This commit is contained in:
Petr Mikheev 2023-11-01 10:30:19 +01:00
parent 6c01ce2672
commit 4c6e081da3

View File

@ -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)
{