Commit ae825b7
committed
fix(vanilla): error during item unequip if any skill accesses item skill
In vanilla clearSkills() calls container.remove(skill) on each skill in SkillPtrs which triggers an immediate removal and skill_container.update on each iteration. This leads to the issue if someone accesses this item's skills during skill.onUpdate it will provide skills which have already been removed from the container leading to an error when you try skill.getContainer().something.
Vanilla bug report: https://steamcommunity.com/app/365360/discussions/1/604159344068529469/1 parent a5a1a3a commit ae825b7
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
63 | 90 | | |
64 | 91 | | |
65 | 92 | | |
| |||
0 commit comments