Crash fixes

This commit is contained in:
Anuken
2018-01-17 19:49:58 -05:00
parent b6106dbc3b
commit 7a3aa91f09
5 changed files with 32 additions and 3 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ public class Pathfind{
/**For an enemy that was just loaded from a save, find the node in the path it should be following.*/
void findNode(Enemy enemy){
if(enemy.lane >= Vars.control.getSpawnPoints().size){
if(enemy.lane >= Vars.control.getSpawnPoints().size || enemy.lane < 0){
enemy.lane = 0;
}