Mergevos / open-vehicle-plus

Modify your vehicles however you want. From top to bottom.
29 stars 10 forks source link

Iter_Alloc usage in the code #37

Closed omcho420 closed 3 years ago

omcho420 commented 3 years ago

What happens if the iterator (Vehicle_Iter) is full? You should add a check for that

if (idx == INVALID_ITERATOR_SLOT) return 0;

https://github.com/Mergevos/samp-vehicle-framework/blob/master/vehicle_framework.inc#L69 https://github.com/Mergevos/samp-vehicle-framework/blob/master/vehicle_framework.inc#L100