diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-21 20:18:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-21 21:45:47 +0300 |
commit | 95227e7c07251c8f59164050543c3c134aff238f (patch) | |
tree | 1b45789ca770f7251a557281da22892923470a68 /src/gui/windows/charcreatedialog.cpp | |
parent | ae351c43eca44c532404deb9f10bf3e4b97406bf (diff) | |
download | manaplus-95227e7c07251c8f59164050543c3c134aff238f.tar.gz manaplus-95227e7c07251c8f59164050543c3c134aff238f.tar.bz2 manaplus-95227e7c07251c8f59164050543c3c134aff238f.tar.xz manaplus-95227e7c07251c8f59164050543c3c134aff238f.zip |
Add support for items with cards in charcreation.xml
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index af23b6b28..d8b6aad74 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -149,15 +149,17 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, setContentSize(w, h); mPlayer->setGender(Gender::MALE); - const std::vector<int> &items = CharDB::getDefaultItems(); + const std::vector<BeingSlot> &items = CharDB::getDefaultItems(); int i = 1; - for (std::vector<int>::const_iterator it = items.begin(), + for (std::vector<BeingSlot>::const_iterator it = items.begin(), it_fend = items.end(); it != it_fend; ++ it, i ++) { - mPlayer->setSpriteId(i, - *it); + const BeingSlot &beingSlot = *it; + mPlayer->setSpriteCards(i, + beingSlot.spriteId, + beingSlot.cardsId); } if (!maxHairColor) |