mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-19 16:57:15 +07:00
Crash fix
This commit is contained in:
parent
415252a5b2
commit
568e55e373
@ -93,7 +93,7 @@ public class Pathfinder{
|
|||||||
* This only occurs for active teams.*/
|
* This only occurs for active teams.*/
|
||||||
private void update(Tile tile, Team team){
|
private void update(Tile tile, Team team){
|
||||||
//make sure team exists
|
//make sure team exists
|
||||||
if(paths[team.ordinal()] != null){
|
if(paths[team.ordinal()] != null && paths[team.ordinal()].weights != null){
|
||||||
PathData path = paths[team.ordinal()];
|
PathData path = paths[team.ordinal()];
|
||||||
|
|
||||||
//impassable tiles have a weight of float.max
|
//impassable tiles have a weight of float.max
|
||||||
|
Loading…
Reference in New Issue
Block a user