mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Fixed bug where less than full team list crashes.
This commit is contained in:
committed by
Austin Schuh
parent
3c3e9ef25d
commit
84eb58f0bc
@@ -79,7 +79,7 @@ func ListenForDsUdpPackets() {
|
||||
|
||||
var dsConn *DriverStationConnection
|
||||
for _, allianceStation := range mainArena.AllianceStations {
|
||||
if allianceStation.team.Id == teamId {
|
||||
if allianceStation.team != nil && allianceStation.team.Id == teamId {
|
||||
dsConn = allianceStation.DsConn
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user