Added type check to assignGear

Avoids running unnecessary code (possibly causing RPT spam) when using assignGear to load vehicle cargo.