aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-22 20:09:23 -0400
committerPaul Gilbert2016-09-22 20:09:23 -0400
commit1dbe64b2ffb47871ed0947f1f286bafa314f9bf3 (patch)
treefc59182422aec6218375d97c5285a37a5c826800
parent4515d7a1ac119edfa9bfce90655cab2d4d279582 (diff)
downloadscummvm-rg350-1dbe64b2ffb47871ed0947f1f286bafa314f9bf3.tar.gz
scummvm-rg350-1dbe64b2ffb47871ed0947f1f286bafa314f9bf3.tar.bz2
scummvm-rg350-1dbe64b2ffb47871ed0947f1f286bafa314f9bf3.zip
XEEN: Fix some compiler warnings
-rw-r--r--engines/xeen/dialogs_items.cpp2
-rw-r--r--engines/xeen/dialogs_party.cpp6
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;