mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-11-19 19:18:33 +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.class = classlist[GetVehicleClass(vehicle) + 1], GetVehicleClass(vehicle)
|
||||
end
|
||||
-- without this the function returned nil and anything doing
|
||||
-- searchCar(vehicle).class would throw
|
||||
return carInfo
|
||||
end
|
||||
else
|
||||
return carInfo
|
||||
|
||||
Reference in new issue
Block a user