I found an old bug in FAangband, also present in your last version
exactly the same in randart.c and jewel.c
I found it after it start giving segfault after upgrading to gcc 4.8
I wonder how a code with such thing could have worked for such a long time without any troubles.
exactly the same in randart.c and jewel.c
Code:
@@ -2836,8 +2836,8 @@ static void j_remove_contradictory(object_type *o_ptr)
}
for (i = 0; i < MAX_P_BONUS; i++)
{
- if ((o_ptr->bonus_stat[i] > 6) && (i != P_BONUS_SPEED))
- o_ptr->bonus_stat[i] = 6;
+ if ((o_ptr->bonus_other[i] > 6) && (i != P_BONUS_SPEED))
+ o_ptr->bonus_other[i] = 6;
}
if ((o_ptr->flags_curse & CF_NO_TELEPORT) &&
((o_ptr->activation = ACT_RANDOM_TELEPORT1) ||
I wonder how a code with such thing could have worked for such a long time without any troubles.

Fortunately they don't anymore.

Comment