ref: 2fc7d17851a534c0a5d03932303376d18d4b8c15
parent: c8e9a82190fcb8687e3e48c1268f4b888e536f57
author: mid-kid <esteve.varela@gmail.com>
date: Thu Mar 30 08:47:02 EDT 2023
Unionize wSwitchMonBuffer
--- a/ram/wram.asm
+++ b/ram/wram.asm
@@ -2002,8 +2002,15 @@
SECTION UNION "Miscellaneous WRAM 1", WRAMX
; switching pokemon in party
-; may store NAME_LENGTH, PARTYMON_STRUCT_LENGTH, or MAIL_STRUCT_LENGTH bytes
-wSwitchMonBuffer:: ds 48
+; may store a name, partymon, or mail
+wSwitchMonBuffer::
+UNION
+ ds NAME_LENGTH
+NEXTU
+ ds PARTYMON_STRUCT_LENGTH
+NEXTU
+ ds MAIL_STRUCT_LENGTH
+ENDU
SECTION UNION "Miscellaneous WRAM 1", WRAMX