summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/ActorBehavior/EnSi.cpp
diff options
context:
space:
mode:
authorGarrett Cox <garrettjcox@gmail.com>2024-09-26 12:20:31 -0500
committerGarrett Cox <garrettjcox@gmail.com>2024-09-26 12:20:31 -0500
commitf5a3e263d99a7f15af436db2c539bc61c8093509 (patch)
treee30936e39cda0ca7e8048c0d4da9f5285679f7cd /mm/2s2h/Rando/ActorBehavior/EnSi.cpp
parent57f3c8435caa1a80a0616484c1cac49b03c7cf59 (diff)
Migrate usage of opt
Diffstat (limited to 'mm/2s2h/Rando/ActorBehavior/EnSi.cpp')
-rw-r--r--mm/2s2h/Rando/ActorBehavior/EnSi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/2s2h/Rando/ActorBehavior/EnSi.cpp b/mm/2s2h/Rando/ActorBehavior/EnSi.cpp
index 5114a9746..a3a9ce084 100644
--- a/mm/2s2h/Rando/ActorBehavior/EnSi.cpp
+++ b/mm/2s2h/Rando/ActorBehavior/EnSi.cpp
@@ -56,7 +56,7 @@ void Rando::ActorBehavior::InitEnSiBehavior(bool isRando) {
});
shouldHookId = REGISTER_VB_SHOULD(GI_VB_GIVE_ITEM_FROM_SI, {
- EnSi* enSi = static_cast<EnSi*>(opt);
+ EnSi* enSi = va_arg(args, EnSi*);
auto randoStaticCheck = Rando::StaticData::GetCheckFromFlag(
FLAG_CYCL_SCENE_CHEST, ENSI_GET_CHEST_FLAG(&enSi->actor), gPlayState->sceneId);