pret / pokeemerald

Decompilation of Pokémon Emerald
2.2k stars 2.36k forks source link

Fix poison projectile array being incorrectly combined into three separate arrays #1989

Closed NTx86 closed 4 months ago

NTx86 commented 5 months ago

Description

It combines three incorrectly separated arrays into a single array, the separated array causes issues if compiler reorders array offsets e.g. this causes a crash in PC port when the move sludge is used with animations on because the arrays are compiled in different offsets which causes unmapped memory access.

Discord contact info

nt_x86