Skip to content

Commit

Permalink
Merge pull request #20 from starstormhun/Fix-postfix-access-exception
Browse files Browse the repository at this point in the history
Fix exception on accessory copy
  • Loading branch information
thojmr authored Dec 29, 2024
2 parents 38ab33d + cf6338b commit 996d278
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static void ChangeCopyAcsPostfix(CvsAccessoryChange __instance)
var controller = GetCharaController(chaControl);
if (controller == null) return;

var slotNum = __instance.selDst;
var slotNum = (int)AccessTools.Field(typeof(CvsAccessoryChange), "selDst").GetValue(__instance);
controller.AccessoryStateChangeEvent(chaControl.chaID, slotNum);
}

Expand Down

0 comments on commit 996d278

Please sign in to comment.