Closed omcho420 closed 3 years ago
What happens if the iterator (Vehicle_Iter) is full? You should add a check for that
Vehicle_Iter
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
What happens if the iterator (
Vehicle_Iter
) is full? You should add a check for thatif (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