From b0f1fbee1caa58c7f984c2ced609060626449876 Mon Sep 17 00:00:00 2001 From: Krutonium <3945538+Krutonium@users.noreply.github.com> Date: Mon, 11 May 2026 19:16:33 -0400 Subject: [PATCH] Fix Overflow/Off-by-one. Fixes #1036 and #1012 (#1042) * Fix Overflow/Off-by-one. Fixes #1036 and #1012 * Guard behind TARGET_PC --- include/d/d_event.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/d/d_event.h b/include/d/d_event.h index 7725897a25..ed0d749db4 100644 --- a/include/d/d_event.h +++ b/include/d/d_event.h @@ -196,7 +196,11 @@ public: /* 0x108 */ int mSkipTimer; /* 0x10C */ int mSkipParameter; /* 0x110 */ BOOL mIsSkipFade; +#if TARGET_PC + /* 0x114 */ char mSkipEventName[21]; +#else /* 0x114 */ char mSkipEventName[20]; +#endif /* 0x128 */ u8 mCompulsory; /* 0x129 */ bool mRoomInfoSet; /* 0x12C */ int mRoomNo;