We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cfafa8 commit 8e6aea8Copy full SHA for 8e6aea8
javascript/features/races/race_minigame.js
@@ -209,8 +209,10 @@ class RaceMinigame extends Minigame {
209
this.updateTicker();
210
211
// Unfreeze all players and allow them to begin racing.
212
- for (const player of this.activePlayers)
213
- player.vehicle.toggleEngine(true);
+ for (const player of this.activePlayers) {
+ if (player.vehicle)
214
+ player.vehicle.toggleEngine(true);
215
+ }
216
217
this.startTime_ = highResolutionTime();
218
0 commit comments