1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 09:35:28 +00:00

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.
This commit is contained in:
elsid 2023-05-22 03:09:19 +02:00
parent 0aa569d4fe
commit 63e01d86a3
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

View File

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