Fixed crash when rendering weapon skin.