Bertram25/mana — comment on commit 90c52cdeabb442767211c8d278565fffe38779d1
File: src/gui/charcreatedialog.cpp line 208
By bjorn:

What is going on here? What's all the messing about with the hairDb to get random hair colors and styles and iterating over them? What do we need all this API for?

What about instead, you add two functions to HairDB, one to get the list of hair style IDs and one to get the list of color IDs. Both can be `std::vector` as far as I can see, and then this `CharCreateDialog` can just remember those vectors and iterate over them with plain indexes and also has no problem picking random ones.