Skip to content

Commit

Permalink
Try to fix crash when picking handcuffs.
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHandcuffs committed Jun 5, 2021
1 parent c1cb8d3 commit e05d611
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion changelog.txt
Expand Up @@ -531,4 +531,5 @@ various small fixes
- update LL FourPlay plugin to v41
- try to detect and fix missing restraints on game load
- try to handle missing restraints when freeing actor from MCM menu
- fix handling of unequip event to catch cases where a device is unequipped and directly deleted, e.g. by "removeitem" console command
- fix handling of unequip event to catch cases where a device is unequipped and directly deleted, e.g. by "removeitem" console command
- change lockpicking interaction to try and fix a crash bug
Expand Up @@ -360,10 +360,9 @@ Bool Function RunPlayerLockpickInteraction(Int lockLevel = -1)
EndIf
Utility.Wait(0.1)
invisibleDoor.Activate(player, true)
Utility.Wait(0.1)
Utility.Wait(0.5) ; wait a bit longer to make sure that the lockpicking UI has enough time
Bool unlocked = !invisibleDoor.IsLocked()
invisibleDoor.DisableNoWait()
invisibleDoor.Delete()
; no need to delete the invisible door manually as it was created with abDeleteWhenAble = true
Return unlocked
EndFunction

Expand Down

0 comments on commit e05d611

Please sign in to comment.