Some minor fixes

Hi, here are some minor fixes. See commit messages.

P.S. ignore the line "_car addMagazineCargoGlobal [_mag,1];" I added.