Attempt to fix the lockup when transferring pokemon using the new gameboy-payload-update code

Free up some IWRAM by eliminating PokemonTables from the constructor of PokeBox and GenXPokemon/GBPokemon.
This commit is contained in:
Philippe Symons
2026-08-13 11:39:18 +02:00
parent 5d546cd08a
commit 2a57c4249d
5 changed files with 6 additions and 8 deletions

View File

@@ -233,7 +233,7 @@ void dbg_inject_pkmn(void *context, unsigned user_param)
PokemonTables tables;
tables.load_gen3_charset(game_lang);
Gen3Pokemon celebi(&tables);
Gen3Pokemon celebi;
celebi.loadData(RSEFL_10_ANIV_Celebi_0BF5_ENG_, false);
// front_sprite_tile_id is reserved behind the box sprites