diff options
| author | Eblo <7004497+Eblo@users.noreply.github.com> | 2025-09-19 23:23:08 -0400 |
|---|---|---|
| committer | Eblo <7004497+Eblo@users.noreply.github.com> | 2025-09-19 23:23:08 -0400 |
| commit | dc9587914d06cbe9140a4504ee0458744e80870b (patch) | |
| tree | fcca6b5e37e6ecf3da19c39bca42d5199b32db7a /mm/2s2h/Rando/ActorBehavior/EnAn.cpp | |
| parent | 1de8a27a7d49c5a3a0862a5357b025b5e881f716 (diff) | |
Do not dereference rando actor script args
Diffstat (limited to 'mm/2s2h/Rando/ActorBehavior/EnAn.cpp')
| -rw-r--r-- | mm/2s2h/Rando/ActorBehavior/EnAn.cpp | 2 |
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 |
