kNoResource crashes game when querying DBG info on empty field
Bug #1533183 reported by
TiborB
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Critical
|
TiborB |
Bug Description
This looks like a consequence of latest editor rework. When you click on field with no resources (like field with mined out water) the game crashes.
backtrace points to game_debug_ui.cc:
str += (boost:
% ibase()
I presume the culprit is new kNoResource index that cannot be resolved to name. If it is true, the fix should be relatively simple.
Related branches
lp:~widelands-dev/widelands/bug-1533183
- Widelands Developers: Pending requested
-
Diff: 31 lines (+13/-8)1 file modifiedsrc/wui/game_debug_ui.cc (+13/-8)
Changed in widelands: | |
status: | New → Confirmed |
milestone: | none → build19-rc1 |
importance: | Undecided → Critical |
Changed in widelands: | |
assignee: | nobody → TiborB (tiborb95) |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Well, try dry riverbed map and click on sand and select DBG - you should get a crash......
As for vicinity of wells - sometimes it crashes, sometimes it correctly shows 0/10 or so. Weird a bit.....