Skip to content

Commit 26c64f8

Browse files
fixed error when there are no vehicles
1 parent 56c5d43 commit 26c64f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 201
2+
# version 202
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

js/tracker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ function stopFollow() {
273273
}
274274

275275
function followVehicle(index) {
276+
if(vehicles.length < 1) return;
277+
276278
if(follow_vehicle != -1) vehicles[follow_vehicle].follow = false;
277279

278280
if(follow_vehicle == index) {

0 commit comments

Comments
 (0)