From 70a0b7ea9c5543bf81ddb7d51c892e90c77f91d6 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Fri, 26 Jan 2024 19:23:03 +0300 Subject: [PATCH] Editor: Drop zero attribute warnings --- apps/opencs/model/tools/referenceablecheck.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/apps/opencs/model/tools/referenceablecheck.cpp b/apps/opencs/model/tools/referenceablecheck.cpp index d25568fd0a..a692bc10d1 100644 --- a/apps/opencs/model/tools/referenceablecheck.cpp +++ b/apps/opencs/model/tools/referenceablecheck.cpp @@ -691,15 +691,6 @@ void CSMTools::ReferenceableCheckStage::npcCheck( return; } } - else if (npc.mNpdt.mHealth != 0) - { - for (size_t i = 0; i < npc.mNpdt.mAttributes.size(); ++i) - { - if (npc.mNpdt.mAttributes[i] == 0) - messages.add(id, ESM::Attribute::indexToRefId(i).getRefIdString() + " is equal to zero", {}, - CSMDoc::Message::Severity_Warning); - } - } if (level <= 0) messages.add(id, "Level is non-positive", "", CSMDoc::Message::Severity_Warning);