segfault on dismantle on conquered enemy building or starting buildings in campaigns
Bug #1205010 reported by
willem
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
cghislai |
Bug Description
Build bzr 6667, self compiled on linux
Dismantling a conquered enemy building (same tribe) results in a segmentation fault. Also the returns popup shows no materials to return.
Same issue can also be triggered by attempting to dismantle any of the "starting buildings" in campaign maps, presumably because these are considered "conquered". See comments below and duplicate bug 1205437 for details.
Related branches
lp:~widelands-dev/widelands/bug1205010
- SirVer: Approve
-
Diff: 478 lines (+182/-76)9 files modifiedsrc/logic/editor_game_base.cc (+6/-1)
src/logic/militarysite.cc (+18/-11)
src/logic/player.cc (+106/-40)
src/logic/player.h (+10/-3)
src/logic/playercommand.cc (+3/-1)
src/logic/ship.cc (+2/-1)
src/map_io/widelands_map_building_data_packet.cc (+10/-9)
src/map_io/widelands_map_buildingdata_data_packet.cc (+8/-3)
src/scripting/lua_bases.cc (+19/-7)
Changed in widelands: | |
status: | Confirmed → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
status: | Fix Committed → Confirmed |
To post a comment you must log in.
Hi willem and welcome to Launchpad.
Thanks for reporting this issue. I just played a game now with r6667 and it does indeed crash when I try to dismantle an enemy building even though I'm playing the same tribe.
We've had a similar problem before, just after dismantling was introduced. It would crash when dismantling buildings from other tribes, but I believe buildings for your own tribe worked at the time (see bug 886808 for details).