The only thing I see it can cause a crash is both acceses to 'hit.entity.skill1' when 'entity' is not a valid pointer.


pd: use the code tag, not the quote one, in order to post code.