Fixed another bug in Ship

Error in for loop condition causing an attempt to access out of bound
index of the weapon array.