Fixed bugs in CHangeWeapon function.

Signed-off-by: Zyk <zyk6870@gmail.com>