forked from chomp/ChompQuestVerifier
Add saftey to code
This commit is contained in:
parent
70f5907630
commit
8419a47988
@ -456,7 +456,10 @@ namespace QuestValidator
|
|||||||
CheckValuesMatch(availableForFinishItem._props.parentId, liveFinishItem._props.parentId, "AvailableForFinish parentId mismatch", availableForFinishItem._props.id);
|
CheckValuesMatch(availableForFinishItem._props.parentId, liveFinishItem._props.parentId, "AvailableForFinish parentId mismatch", availableForFinishItem._props.id);
|
||||||
|
|
||||||
// check AvailableForFinish resetOnSessionEnd
|
// check AvailableForFinish resetOnSessionEnd
|
||||||
|
if (availableForFinishItem._props.resetOnSessionEnd.HasValue && liveFinishItem._props.resetOnSessionEnd.HasValue)
|
||||||
|
{
|
||||||
CheckValuesMatch(availableForFinishItem._props.resetOnSessionEnd.Value, liveFinishItem._props.resetOnSessionEnd.Value, "AvailableForFinish resetOnSessionEnd value mismatch", availableForFinishItem._props.id);
|
CheckValuesMatch(availableForFinishItem._props.resetOnSessionEnd.Value, liveFinishItem._props.resetOnSessionEnd.Value, "AvailableForFinish resetOnSessionEnd value mismatch", availableForFinishItem._props.id);
|
||||||
|
}
|
||||||
|
|
||||||
// check AvailableForFinish target
|
// check AvailableForFinish target
|
||||||
CheckValuesMatch(Convert.ToString(availableForFinishItem._props.target), Convert.ToString(liveFinishItem._props.target), "AvailableForFinish target value mismatch", availableForFinishItem._props.id);
|
CheckValuesMatch(Convert.ToString(availableForFinishItem._props.target), Convert.ToString(liveFinishItem._props.target), "AvailableForFinish target value mismatch", availableForFinishItem._props.id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user