Prevent crash if clearing nonexistent scriptdelay
This commit is contained in:
parent
0b82f53032
commit
d01af0ad9d
|
@ -98,6 +98,7 @@
|
|||
Case "cleardelay"
|
||||
If argument <> "" Then
|
||||
Dim registerContent() As Object = ActionScript.GetRegisterValue("SCRIPTDELAY_" & argument)
|
||||
If registerContent(0) IsNot Nothing Then
|
||||
Dim delayType As String = CStr(registerContent(0)).GetSplit(0, ";")
|
||||
Select Case delayType.ToLower
|
||||
Case "steps"
|
||||
|
@ -113,7 +114,7 @@
|
|||
Next
|
||||
Core.Player.ScriptDelayItems = String.Join(";", ItemDelayList)
|
||||
End Select
|
||||
|
||||
End If
|
||||
ActionScript.UnregisterID("SCRIPTDELAY_" & argument, "str")
|
||||
ActionScript.UnregisterID("SCRIPTDELAY_" & argument)
|
||||
End If
|
||||
|
|
Loading…
Reference in New Issue