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:
parent
0aa569d4fe
commit
63e01d86a3
@ -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…
x
Reference in New Issue
Block a user