rename value

pull/9470/head
Thibault Duplessis 2021-07-25 19:14:21 +02:00
parent e0a6fc8920
commit a069e44f4f
1 changed files with 5 additions and 5 deletions

View File

@ -125,17 +125,17 @@ final private class Takebacker(
proxy.save(p2) inject p2.events
}
private def publishTakeback(pov: Pov)(implicit proxy: GameProxy): Unit = {
if (lila.game.Game.isBoardCompatible(pov.game))
private def publishTakeback(prevPov: Pov)(implicit proxy: GameProxy): Unit =
if (lila.game.Game.isBoardCompatible(prevPov.game))
proxy
.withPov(pov.color) { p =>
.withPov(prevPov.color) { p =>
fuccess(
Bus.publish(
lila.game.actorApi.BoardTakeback(p),
lila.game.actorApi.BoardTakeback makeChan pov.gameId
lila.game.actorApi.BoardTakeback makeChan prevPov.gameId
)
)
}
.unit
}
}