Anyone want to take a shot in the dark as to why this crashed my mud?

Program terminated with signal 11, Segmentation fault.
#0  0x80d5440 in saves_spell (level=200, victim=0xbc94450, dam_type=18)
    at magic.c:191
191         save = ( (victim->level/2) - (level/2)) * 5 -
victim->saving_throw * 1.25;
(gdb) list saves_spell
186      */
187     bool saves_spell( int level, CHAR_DATA *victim, int dam_type )
188     {
189         int save, num;
190         CLASS *cl;
191         save = ( (victim->level/2) - (level/2)) * 5 -
victim->saving_throw * 1.25;
192
193         if (IS_AFFECTED(victim,AFF_BERSERK))
194             save += victim->level/2;
195
(gdb) print  ( (victim->level/2) - (level/2)) * 5 - victim->saving_throw *
1.25
$1 = -453.75




Reply via email to