diff options
Diffstat (limited to 'src/gui/playerbox.cpp')
-rw-r--r-- | src/gui/playerbox.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/playerbox.cpp b/src/gui/playerbox.cpp index c8493c79..0e9f5e0f 100644 --- a/src/gui/playerbox.cpp +++ b/src/gui/playerbox.cpp @@ -23,6 +23,7 @@ #include "playerbox.h" #include "gui.h" +#include "../being.h" #include "../main.h" #include "../resources/resourcemanager.h" @@ -63,7 +64,7 @@ void PlayerBox::draw(gcn::Graphics *graphics) // Draw his hair if (hairColor >= 0 && hairStyle >= 0 && - hairColor < 10 && hairStyle < 4) + hairColor < NR_HAIR_COLORS && hairStyle < NR_HAIR_STYLES) { int hf = hairColor + 40 * (hairStyle); if (hf >= 0 && hf < (int)hairset->spriteset.size()) { |