summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Schwarzer <[email protected]>2016-01-18 10:51:31 +0100
committerFrederik Schwarzer <[email protected]>2016-01-18 10:51:31 +0100
commitad34c13c1d345dc55d775b6d52d3b618c2ae6763 (patch)
tree2c53ad1689ed5bdb7bd80252513fa9a51450b22a
parent7a7e382377930d23d99fc18a1688eebe1f337494 (diff)
Constness.
-rw-r--r--src/game/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 25539c9..4589098 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -486,7 +486,7 @@ bool Game::redoMove()
const UndoCommand *undoCmd = static_cast<const UndoCommand*>(m_undoStack.command(m_undoStack.index()));
- Player *player = undoCmd->player();
+ const Player *player = undoCmd->player();
if (undoCmd->moveType() == UndoCommand::MoveType::Passed) {
//qDebug() << "Redo a pass move for" << player << undoCmd->text();