cgame: add a missing var initializer
game: prevent missing negative array index read
game: fix a possible negative array index read