From 1dbe64b2ffb47871ed0947f1f286bafa314f9bf3 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 22 Sep 2016 20:09:23 -0400 Subject: XEEN: Fix some compiler warnings --- engines/xeen/dialogs_items.cpp | 2 +- engines/xeen/dialogs_party.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/xeen/dialogs_items.cpp b/engines/xeen/dialogs_items.cpp index 0260ddc5f9..be0c2dab1c 100644 --- a/engines/xeen/dialogs_items.cpp +++ b/engines/xeen/dialogs_items.cpp @@ -718,7 +718,7 @@ int ItemsDialog::calcItemCost(Character *c, int itemIndex, ItemsMode mode, if (i._material < 37) amount2 = Res.ELEMENTAL_DAMAGE[i._material] * 100; else if (i._material > 58) - amount3 = Res.METAL_BASE_MULTIPLIERS[i._material - 37] * 100; + amount3 = Res.ELEMENTAL_DAMAGE[i._material - 59 + 7] * 100; switch (mode) { case ITEMMODE_BLACKSMITH: diff --git a/engines/xeen/dialogs_party.cpp b/engines/xeen/dialogs_party.cpp index f370ac288b..9457173e0e 100644 --- a/engines/xeen/dialogs_party.cpp +++ b/engines/xeen/dialogs_party.cpp @@ -382,10 +382,10 @@ void PartyDialog::createChar() { bool restartFlag = true; uint attribs[TOTAL_ATTRIBUTES]; bool allowedClasses[TOTAL_CLASSES]; - Race race; - Sex sex; + Race race = HUMAN; + Sex sex = MALE; Common::String msg; - int charIndex; + int charIndex = 0; Mode oldMode = _vm->_mode; _vm->_mode = MODE_4; -- cgit v1.2.3