Fix for null veh data in rent timer
This commit is contained in:
@@ -41,6 +41,7 @@ function initTimers() {
|
||||
|
||||
function vehicleRentCheck() {
|
||||
for(let i in getServerData().vehicles) {
|
||||
if(getServerData().vehicles[i] != null) {
|
||||
if(getServerData().vehicles[i].rentPrice > 0) {
|
||||
if(getServerData().vehicles[i].rentedBy) {
|
||||
let rentedBy = getServerData().vehicles[i].rentedBy;
|
||||
@@ -54,5 +55,6 @@ function vehicleRentCheck() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user