diff options
author | Ira Rice <irarice@gmail.com> | 2008-10-19 23:07:35 +0000 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2008-10-19 23:07:35 +0000 |
commit | e57f4ec64f53091dd254c2ee2db9592d30a5af0b (patch) | |
tree | ef002e7fb4b0dfb5b06dd4e4c2d95b9f3b06f920 /src/gui/char_select.cpp | |
parent | be1af40e371845bcad1337cc59e5f5ac0f991f02 (diff) | |
download | mana-e57f4ec64f53091dd254c2ee2db9592d30a5af0b.tar.gz mana-e57f4ec64f53091dd254c2ee2db9592d30a5af0b.tar.bz2 mana-e57f4ec64f53091dd254c2ee2db9592d30a5af0b.tar.xz mana-e57f4ec64f53091dd254c2ee2db9592d30a5af0b.zip |
Fixed a small error that I didn't notice before with de-hardcoding the
colors. Thanks goes to paks for noticing this.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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(""); |