From e57f4ec64f53091dd254c2ee2db9592d30a5af0b Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sun, 19 Oct 2008 23:07:35 +0000 Subject: Fixed a small error that I didn't notice before with de-hardcoding the colors. Thanks goes to paks for noticing this. --- src/gui/char_select.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/char_select.cpp') diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 65d0159f..628ab35f 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -257,8 +257,11 @@ CharCreateDialog::CharCreateDialog(Window *parent, int slot, Network *network, mPlayer = new Player(0, 0, NULL); mPlayer->setGender(gender); + ColorDB::load(); int numberOfHairColors = ColorDB::size(); + printf("%d\n", numberOfHairColors); + mPlayer->setHairStyle(rand() % NR_HAIR_STYLES, rand() % numberOfHairColors); mNameField = new TextField(""); -- cgit v1.2.3-60-g2f50