bug in object_absorb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerDiver
    Prophet
    • Mar 2008
    • 2820

    bug in object_absorb

    I had a stack of bad ammo that would not merge after I threw it. The culprit is line 1675 in obj-util.c in r1709.

    if (o_ptr->flags[i] != j_ptr->flags[1])

    should be

    if (o_ptr->flags[i] != j_ptr->flags[i])

    I guess most things that might merge don't have many flags.

    [edit] silly me, that is a bug in object_similar, not object_absorb
  • Magnate
    Angband Devteam member
    • May 2007
    • 5110

    #2
    Originally posted by PowerDiver
    I had a stack of bad ammo that would not merge after I threw it. The culprit is line 1675 in obj-util.c in r1709.

    if (o_ptr->flags[i] != j_ptr->flags[1])

    should be

    if (o_ptr->flags[i] != j_ptr->flags[i])

    I guess most things that might merge don't have many flags.

    [edit] silly me, that is a bug in object_similar, not object_absorb
    Fixed in r1774. Thanks.
    "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎