felling ax preciousness 254
Bug #1767187 reported by
TiborB
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
Hi,
when testing AI I noticed strange thing - it builds too many metalworks. When digging dipper I found that the problem is that preciousness of felling ax for barbarians is returned as 254 even though it is not defined in init.lua.
I will look at this deeper but perhaps somebody is aware what is going on...
Also, would you mind if I insert assert for preciousness of a ware: (preciousness<30)?
Related branches
lp://staging/~widelands-dev/widelands/bug-1767187-preciousness
- TiborB: Approve
-
Diff: 33 lines (+9/-0)2 files modifieddata/tribes/wares/felling_ax/init.lua (+1/-0)
src/logic/map_objects/tribes/tribes.cc (+8/-0)
Changed in widelands: | |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
I meant the assert would go to AI code to avoid similar surprises in the future...