Work area radius: 45xxxxxxx in bzr7962[trunk]
Bug #1571009 reported by
Klaus Halfmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Some Buildings show
Work area radius: 459874944
I found: Ax Workshop, Smelting Works, Charcoal Kiln, War Mill,
Bakery shows: Work area radius: 456396352
Big Inn: 454954656
Brewery: 458567408
etc.
To test open the help with f1 and scroll tgrough the Buildings Help.
Perhaps this was introduced via som type changes for uint8 to uint32 / ResourceAmount
and some calculations based on these.
Related branches
lp:~widelands-dev/widelands/bug_1571009_work_area_radius
- Klaus Halfmann: Needs Resubmitting
- GunChleoc: Approve
-
Diff: 71 lines (+30/-7)2 files modifiedsrc/logic/map_objects/tribes/workarea_info.h (+21/-4)
src/scripting/lua_map.cc (+9/-3)
Changed in widelands: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in widelands: | |
status: | In Progress → Fix Committed |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
These buildings don't have a work area. The problem is that LuaBuildingDesc ription: :get_workarea_ radius doesn't check for that case and dereferences an invalid iterator. It should push a nil onto the stack when no work area is available.