StatisticWaresDisplay hits shark infested water
Bug #1733862 reported by
Klaus Halfmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
High
|
Unassigned |
Bug Description
StatisticWaresD
after that there is a comment: // shark infested water, run!
we actually have 85 nr_wares so all colors after that are out of Bounds.
Thanks again to the http://
I will provide a hotfix now, but as I am sort of colorblind. I will just use
some Gray colors. No idea were this palette comes from.
How about you go round robin around the array when we run out of colors? We will get 2 wares with the same colors, but we can't guarantee that we will never run out of them again.
Alternatively, the colors could be defined for each ware in in data/tribes/wares.