Crash when dipping an item into a fountain

Issue #27 resolved
RMTEW FULL NAME repo owner created an issue

From mirror of old bug tracker.

NOTE: attached save game not retrievable.

Sometimes gives a "Fatal Error: Negative Dice values in Dice::Roll!" when you dip items into a fountain for an enchant. This happened already with the +4 long sword and +3 padded armor of agility in this save. Sometimes it works, though.

Comments (2)

  1. RMTEW FULL NAME reporter

    Fix crash bugs which happen when dipping an item into a fountain. The first case was where the dipped item transforms into a hostile monster at the location of the target of the dipping action, only dipping actions do not have a target but rather a first item (the dipped item) and a second item (the fountain). The second case was where the item gets teleported somewhere on the map - only the map is larger than the bounds of the Roll() function, so a bounds error would be hit. Fixes #27

    → <<cset 608604ba33a9>>

  2. Log in to comment