From 63e01d86a3cb6eaf9499f3d7495899e2e9159ef3 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 22 May 2023 03:09:19 +0200 Subject: [PATCH] Use string based UniversalId to check script for blacklist Blacklist is a vector of strings and isBlacklisted internally calls getId which throws exception for RefId based UniversalId. --- apps/opencs/model/tools/scriptcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opencs/model/tools/scriptcheck.cpp b/apps/opencs/model/tools/scriptcheck.cpp index b97f829e53..7a76efa483 100644 --- a/apps/opencs/model/tools/scriptcheck.cpp +++ b/apps/opencs/model/tools/scriptcheck.cpp @@ -106,7 +106,7 @@ void CSMTools::ScriptCheckStage::perform(int stage, CSMDoc::Messages& messages) mId = mDocument.getData().getScripts().getId(stage); - if (mDocument.isBlacklisted(CSMWorld::UniversalId(CSMWorld::UniversalId::Type_Script, mId))) + if (mDocument.isBlacklisted(CSMWorld::UniversalId(CSMWorld::UniversalId::Type_Script, mId.getRefIdString()))) return; // Skip "Base" records (setting!) and "Deleted" records