mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 07:50:54 -07:00
Crash fix
This commit is contained in:
parent
415252a5b2
commit
568e55e373
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ public class Pathfinder{
|
|||
* This only occurs for active teams.*/
|
||||
private void update(Tile tile, Team team){
|
||||
//make sure team exists
|
||||
if(paths[team.ordinal()] != null){
|
||||
if(paths[team.ordinal()] != null && paths[team.ordinal()].weights != null){
|
||||
PathData path = paths[team.ordinal()];
|
||||
|
||||
//impassable tiles have a weight of float.max
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue