Bug: check_skill is passing an invalid argument type to the failed_casting function.
Danger: Medium
Found by: g++ compiler
Fixed by: Samson
The code is passing a void *vo pointer to failed_casting in the victim slot when vo could be assigned
to an object. This is obviously improper usage of the variable.
[skills.c]
In check_skill, locate the call to failed_casting.
It looks like so:
failed_casting( skill_table[sn], ch, vo, obj );
Change it to:
failed_casting( skill_table[sn], ch, victim, obj );
A bit further up, under case TAR_CHAR_SELF:
Make sure you have a line that says: victim = ch;
This bug could be the source of some strange crashes with certain skills.
Kylotan also reports this bug does not appear to affect Smaug 1.02a, only the 1.4a branch.