mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-30 06:14:46 +00:00
fallback for searchCar if info couldn't be found
This commit is contained in:
1 parent
a96602d351
commit
8c947aae73
1 file changed
+3
@@ -80,6 +80,9 @@ function searchCar(vehicle)
|
|||||||
carInfo.price = 0
|
carInfo.price = 0
|
||||||
carInfo.class = classlist[GetVehicleClass(vehicle) + 1], GetVehicleClass(vehicle)
|
carInfo.class = classlist[GetVehicleClass(vehicle) + 1], GetVehicleClass(vehicle)
|
||||||
end
|
end
|
||||||
|
-- without this the function returned nil and anything doing
|
||||||
|
-- searchCar(vehicle).class would throw
|
||||||
|
return carInfo
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
return carInfo
|
return carInfo
|
||||||
|
|||||||
Reference in new issue
Block a user