Merge lp:~miroslavr256/widelands/bug-1550568-restool_undo_crash into lp:widelands
Proposed by
Miroslav Remák
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 7890 | ||||
Proposed branch: | lp:~miroslavr256/widelands/bug-1550568-restool_undo_crash | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
36 lines (+6/-4) 2 files modified
src/editor/tools/editor_decrease_resources_tool.cc (+3/-2) src/editor/tools/editor_increase_resources_tool.cc (+3/-2) |
||||
To merge this branch: | bzr merge lp:~miroslavr256/widelands/bug-1550568-restool_undo_crash | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+289007@code.launchpad.net |
Description of the change
The cause of this bug is dereferencing a past-the-end iterator in EditorSetResour
In certain situations the 'increase/decrease resources' implementation can skip storing some of the old resource indices and amounts, which the undo implementation does not expect.
To post a comment you must log in.
That fixed it, thanks!
@bunnybot merge