summaryrefslogtreecommitdiff
path: root/mm/2s2h/Rando/ActorBehavior/EnAn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mm/2s2h/Rando/ActorBehavior/EnAn.cpp')
-rw-r--r--mm/2s2h/Rando/ActorBehavior/EnAn.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/2s2h/Rando/ActorBehavior/EnAn.cpp b/mm/2s2h/Rando/ActorBehavior/EnAn.cpp
index f0b835508..a64f5c2cf 100644
--- a/mm/2s2h/Rando/ActorBehavior/EnAn.cpp
+++ b/mm/2s2h/Rando/ActorBehavior/EnAn.cpp
@@ -26,7 +26,7 @@ void Rando::ActorBehavior::InitEnAnBehavior() {
skipCmds.clear();
skipCmds.push_back(MSCRIPT_CMD_ID_AWAIT_TEXT); // Have to skip this to prevent a crash
skipCmds.push_back(MSCRIPT_CMD_ID_AUTOTALK); // And have to skip this to prevent a softlock on repeats
- MsgScriptCmdOfferItem* cmd = (MsgScriptCmdOfferItem*)*va_arg(args, MsgScript*);
+ MsgScriptCmdOfferItem* cmd = va_arg(args, MsgScriptCmdOfferItem*);
GetItemId getItemId = (GetItemId)SCRIPT_PACK_16(cmd->itemIdH, cmd->itemIdL);
/*
* If the player has the Bombers' Notebook and this is the Letter to Kafei check, the game will crash