Skip to content

Commit

Permalink
Another potential crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
buthed010203 committed Oct 9, 2024
1 parent c908015 commit 8ecd1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/client/navigation/AssistPath.kt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class AssistPath(val assisting: Player?, val type: Type = Type.Regular, var circ
assisting ?: return
if (type != Type.FreeMove && player.dst(assisting) > aStarTolerance) waypoints.draw()

if (Spectate.pos != assisting) assisting.unit().drawBuildPlans() // Don't draw plans twice
if (Spectate.pos != assisting) assisting.unit()?.drawBuildPlans() // Don't draw plans twice
}

override fun progress(): Float {
Expand Down

0 comments on commit 8ecd1fa

Please sign in to comment.