Editor crashes when changing tribe
Bug #1526903 reported by
kaputtnik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
Steps to reproduce:
1. Create a new map or just open editor
2. Set a starting position of one or two players
3. Save the map
4. Load the map (either restart editor or just reopen the previous saved map)
5. change the tribe of player_1 or player_2
6. Save the map
7. Load the map again (either restart editor or just reopen the previous saved map)
Result:
Game data error
allowed buildings: player 1 (empire): tribe empire does not define building type "barbarians_
Related branches
lp:~widelands-dev/widelands/bug-1526903
- kaputtnik (community): Approve
-
Diff: 37 lines (+15/-11)1 file modifiedsrc/map_io/map_saver.cc (+15/-11)
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Well, a workaround is to edit wmf (zip archive), and manually remove the file allowed_ building_ types
I looked at the code, and it seems there is no 'API' to remove unwanted profile (i.e. this file in this case)
So least "fix" would be to insert text to error popup saying what is needed to do.
Or generally we must consider if creating allowed_ building_ types when saving map in editor is needed at all