summaryrefslogtreecommitdiff
path: root/src/mystery_event_script.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2019-10-23 15:31:23 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2019-10-23 15:31:23 -0400
commit661e5d92217c0b40146b35e7b023a28fd567b406 (patch)
tree0bf026238d8b965dcb863a7c959a46561685d921 /src/mystery_event_script.c
parent6e36c229200e083ca005cbc448e99210d111f3b2 (diff)
field_specials through Task_AnimateElevatorWindowView
Diffstat (limited to 'src/mystery_event_script.c')
-rw-r--r--src/mystery_event_script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mystery_event_script.c b/src/mystery_event_script.c
index 26cbdb145..146595272 100644
--- a/src/mystery_event_script.c
+++ b/src/mystery_event_script.c
@@ -281,7 +281,7 @@ bool8 MEScrCmd_givepokemon(struct ScriptContext *ctx)
bool8 MEScrCmd_addtrainer(struct ScriptContext *ctx)
{
u32 data = ScriptReadWord(ctx) - ctx->data[1] + ctx->data[0];
- memcpy(gSaveBlock2Ptr->unk_B0.field_3F0, (void *)data, 0xBC);
+ memcpy(&gSaveBlock2Ptr->unk_B0.field_3F0, (void *)data, sizeof(struct BattleTowerEReaderTrainer));
ValidateEReaderTrainer();
StringExpandPlaceholders(gStringVar4, gText_MysteryGiftNewTrainer);
ctx->data[2] = 2;