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.
simplify_debugging
elsid 2 years ago
parent 0aa569d4fe
commit 63e01d86a3
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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

Loading…
Cancel
Save