Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve nil index issue in destroy script callback #3117

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

omarcopires
Copy link
Contributor

Description

Fixed an error in the item destruction script where calling ActionsLib.destroyItem resulted in a nil reference. The function call was adjusted to use destroyItem directly, ensuring the script works correctly and avoids global index errors.

Fixes

Interface: Scripts Interface
Script ID: D:\Repositorios Git\baiak-yurots\data-canary/scripts\actions\other\destroy.lua:callback
Error Description: ...iak-yurots\data-canary/scripts\actions\other\destroy.lua:253: attempt to index global 'ActionsLib' (a nil value)
stack traceback:
        [C]: in function '__index'
        ...iak-yurots\data-canary/scripts\actions\other\destroy.lua:253: in function <...iak-yurots\data-canary/scripts\actions\other\destroy.lua:252>

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

@dudantas dudantas merged commit 4ee11d6 into opentibiabr:main Nov 14, 2024
18 checks passed
@omarcopires omarcopires deleted the fix-destroy branch November 14, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants