Merge lp:~widelands-dev/widelands/bug-1724145-corrupt-zip-when-saving into lp:widelands
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8743 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1724145-corrupt-zip-when-saving | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
100 lines (+23/-6) 4 files modified
data/campaigns/emp03.wmf/scripting/mission_thread.lua (+1/-2) data/campaigns/emp04.wmf/scripting/starting_conditions.lua (+1/-2) data/campaigns/tutorial04_economy.wmf/scripting/mission_thread.lua (+1/-2) src/scripting/lua_map.cc (+20/-0) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1724145-corrupt-zip-when-saving | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Notabilis | Approve | ||
Review via email: mp+349087@code.launchpad.net |
Commit message
Do not save LuaEconomy objects in Lua scrips for use later
- Due to economy merging, the economy object can become unavailable and cause crashes.
- Fixed Lua scripts and added warnings to documentation.
Description of the change
The underlying economy object can disappear from eco:ware_
To reproduce the Bug:
1. Play Empire 3: Neptune's Revenge until you trigger the "Lower Marble Columns" objective. Do not take any action on the objective.
2. Delete a road so that you end up with 2 economies
3. Connect the outer economy to the Headquarters Shipwreck economy: Pick a flag in the outer economy to start road building, then a flag in the original economy.
Continuous integration builds have changed state:
Travis build 3635. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 401193955. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1724145_ corrupt_ zip_when_ saving- 3434.
Appveyor build 3434. State: success. Details: https:/