Commit 968ce5cd authored by Martin Walch's avatar Martin Walch Committed by Albert Astals Cid
Browse files

fix for bug #335017: konquest emits warning "QStateMachine::addState: state...

fix for bug #335017: konquest emits warning "QStateMachine::addState: state has already been added to this machine" when starting a new game

BUGS: 335017
REVIEW: 119436
parent a01fdfde
......@@ -58,12 +58,11 @@ void LocalGame::buildMachine()
if (m_gameMachine.isRunning())
foreach (Player *player, m_players)
// Player is a subclass of QState and the constructor of Player already adds
// the new Player object to m_gameMachine by passing it to the superclass
// constructor QState(QState *parent = 0).
// Accordingly, we can instantly go ahead with configuring the other
// parts of the machine.
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