mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-27 14:11:36 +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
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ void CSMTools::ScriptCheckStage::perform(int stage, CSMDoc::Messages& messages)
|
||||||
|
|
||||||
mId = mDocument.getData().getScripts().getId(stage);
|
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;
|
return;
|
||||||
|
|
||||||
// Skip "Base" records (setting!) and "Deleted" records
|
// Skip "Base" records (setting!) and "Deleted" records
|
||||||
|
|
Loading…
Reference in a new issue