Help Division by 0 Error When Opening Trainer Card


Distortion World Enthusiast
This is in Pokemon Essentials BW V3.1.1. I have added new Pokemon and done some graphical updates, but I have not changed any script sections relating to the pause menu or trainer card. This error message appears when I try opening the Trainer Card from the pause menu, and I checked the lines it cited and was still confused. Can anyone explain what exactly is going wrong here and how to fix it? All other options in the Menu (Pokemon, Pokedex, Save, and Settings) are working without error.

Exception: ZeroDivisionError
Message: divided by 0
BW_TrainerCard:33:in `/'
BW_TrainerCard:33:in `pbStartScene'
BW_TrainerCard:329:in `pbStartScreen'
BW_PauseMenu:505:in `pbStartPokemonMenu'
BW_PauseMenu:504:in `pbFadeOutIn'
BW_PauseMenu:504:in `pbStartPokemonMenu'
BW_PauseMenu:447:in `loop'
BW_PauseMenu:524:in `pbStartPokemonMenu'
Scene_Map:199:in `call_menu'
Scene_Map:170:in `update'