Quote:
Originally Posted by Arkshine
Did you try to debug at least? Like printing each cell of g_LastHP ?
Error states you pass an invalid handle, meaning g_LastHP[i] returns 0. Are you sure that "i" is not 0, because at 0 you don't create handle.
|
Oops that's embarassing

Turns out that g_MaxPL was 0 from the start. Everything is fine now.
Sorry for bothering you and thanks for the help!