mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-28 09:58:15 +01:00
Fixed a potential division by zero.
This commit is contained in:
parent
b6b4958351
commit
f0c7c9ce23
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void HistoryWidget::updateModel()
|
|||
if (m_forPlayer)
|
||||
{
|
||||
m_model->setData(m_model->index(rowNum, 5), totalScore);
|
||||
if (!m_isFreeGame)
|
||||
if (!m_isFreeGame && gameScore != 0)
|
||||
{
|
||||
int percentage = totalScore * 100 / gameScore;
|
||||
m_model->setData(m_model->index(rowNum, 6),
|
||||
|
|
Loading…
Reference in a new issue