pret / pokeemerald

Decompilation of Pokémon Emerald
2.29k stars 2.63k forks source link

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

Closed NTx86 closed 7 months ago

NTx86 commented 7 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