Divided by Zero error

I've run into a problem when battle-testing, though I presume that if I went through all the trouble in playtest, the same thing would happen.

The game instantly crashed with the following error:

Script 'Window_Selectable' line 61: ZeroDivisionError occured.

 

divided by 0

 

How the heck did it automatically divide by zero? I had the battle test initialize with 3 characters at level 20. The stats are:

 

#1:

 

MHP 1874

MMP 197

ATK 96

DEF 47

MAT 32

MDF 47

AGI 65

LUK 61

 

#2

MHP 1406

MMP 290

ATK 111

DEF 41

MAT 59

MDF 38

AGI 87

LUK 74

 

#3

MHP 743

MMP 461

ATK 73

DEF 51

MAT 81

MDF 90

AGI 55

LUK 117

 

Any ideas?


EDIT: CRAP NEVERMIND I FIGURED IT OUT. Nix this thread plz.
For the reference of anyone else trying to help, this is the function at line 61:

Code:
  def row_max    [(item_max + col_max - 1) / col_max, 1].max  end
So somewhere your col_max is set at 0. Are you using Yanfly's battle system? The game will crash if you have no actors or no enemies.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.


Next time, provide links to the battle system you are using.

Original thread: https://forums.rpgmakerweb.com/threads/divided-by-zero-error.21273/