Fixed two warnings

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5326 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2010-04-30 20:16:35 +00:00
parent 9861211bca
commit 8798ada9d9

View File

@ -198,7 +198,7 @@ void PowerupManager::loadWeights(const XMLNode &root,
printf("Incorrect number of weights found in class '%s':\n",
class_name.c_str());
printf("%d instead of %d - probabilities will be incorrect.\n",
weight_list.size(), (int)POWERUP_LAST);
(int)weight_list.size(), (int)POWERUP_LAST);
return;
}
@ -275,4 +275,4 @@ PowerupManager::PowerupType PowerupManager::getRandomPowerup(unsigned int pos)
int random = rand()%m_powerups_for_position[pos_class].size();
return m_powerups_for_position[pos_class][random];
} // getRandomPowerup
} // getRandomPowerup