Commit 20898c19 authored by Yuri Chornoivan's avatar Yuri Chornoivan

Get rid of the unused variable

parent b9889a28
......@@ -235,9 +235,7 @@ void KolfWindow::startNewGame()
if (loadedGame.isNull())
{
PlayerEditor *curEditor = 0;
int newId = 1;
for (curEditor = dialog->players()->at(newId-1); newId <= dialog->players()->count(); ++newId)
for (int newId = 1; newId <= dialog->players()->count(); ++newId)
{
players.append(Player());
players.last().ball()->setColor(dialog->players()->at(newId-1)->color());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment