1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-27 21:35:24 +00:00

Fix some compiler warnings

This commit is contained in:
Jan-Peter Nilsson 2010-11-01 18:56:09 +01:00
parent 51f26e059a
commit 700e379d56
2 changed files with 3 additions and 4 deletions

View File

@ -205,7 +205,7 @@ void StatsWindow::setValue (const std::string& id, const MWMechanics::Stat<float
{"SkillSpeechcraft", ESM::Skill::Speechcraft}, {"SkillSpeechcraft", ESM::Skill::Speechcraft},
{"SkillHandToHand", ESM::Skill::HandToHand}, {"SkillHandToHand", ESM::Skill::HandToHand},
}; };
for (int i = 0; i < sizeof(skillMap)/sizeof(skillMap[0]); ++i) for (size_t i = 0; i < sizeof(skillMap)/sizeof(skillMap[0]); ++i)
{ {
if (skillMap[i].id == id) if (skillMap[i].id == id)
{ {

View File

@ -333,7 +333,7 @@ void WindowManager::setValue (const std::string& id, const MWMechanics::Stat<int
ESM::Attribute::Personality, ESM::Attribute::Personality,
ESM::Attribute::Luck ESM::Attribute::Luck
}; };
for (int i = 0; i < sizeof(ids)/sizeof(ids[0]); ++i) for (size_t i = 0; i < sizeof(ids)/sizeof(ids[0]); ++i)
{ {
if (id != ids[i]) if (id != ids[i])
continue; continue;
@ -376,7 +376,7 @@ void WindowManager::setValue (const std::string& id, const MWMechanics::Stat<flo
{"SkillSpeechcraft", ESM::Skill::Speechcraft}, {"SkillSpeechcraft", ESM::Skill::Speechcraft},
{"SkillHandToHand", ESM::Skill::HandToHand}, {"SkillHandToHand", ESM::Skill::HandToHand},
}; };
for (int i = 0; i < sizeof(skillMap)/sizeof(skillMap[0]); ++i) for (size_t i = 0; i < sizeof(skillMap)/sizeof(skillMap[0]); ++i)
{ {
if (skillMap[i].id == id) if (skillMap[i].id == id)
{ {
@ -637,7 +637,6 @@ void WindowManager::onClassQuestionChosen(MyGUI::Widget* _sender, int _index)
void WindowManager::onGenerateClassBack() void WindowManager::onGenerateClassBack()
{ {
bool goNext = classChosen; // Go to next dialog if class was previously chosen
classChosen = true; classChosen = true;
if (generateClassResultDialog) if (generateClassResultDialog)