XEEN: Fix some compiler warnings

This commit is contained in:
Paul Gilbert 2016-09-22 20:09:23 -04:00
parent 4515d7a1ac
commit 1dbe64b2ff
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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;