konquest resets player colours on startup

Bug #811580 reported by Adam Oellermann on 2011-07-16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kdegames (Ubuntu)

Bug Description

When Konquest is restarted, the "New Game" dialogue resets all the player colours to blue. The problem is in the source file newgamedlg.cc on line 175 - in method addPlayer, where it currently reads:

player = new Player( map, name, PlayerColors[i-2], i-1, Player::Human);

it should really read:

player = new Player( map, name, PlayerColors[players], i-1, Player::Human);
Kubuntu 11.04
  Installed: 4:4.6.2-0ubuntu2

tags: added: patch

Oops... missed another required change; revised patch attached. I've played a couple of games through with this patchfile, and it all seems good.

I missed another change - this one's been tested in a couple of games and seems to be working right!

OK, the last was just the output of diff - this, I think, is the actual patch format you want.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments