Fix Overflow/Off-by-one. Fixes #1036 and #1012 (#1042)

* Fix Overflow/Off-by-one. Fixes #1036 and #1012

* Guard behind TARGET_PC
This commit is contained in:
Krutonium
2026-05-11 19:16:33 -04:00
committed by GitHub
parent 40e3f7d057
commit b0f1fbee1c
+4
View File
@@ -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;