fixed bug with Sokoban auto-exit option only working for local player
authorHolger Schemel <info@artsoft.org>
Sun, 28 Oct 2018 15:41:29 +0000 (16:41 +0100)
committerHolger Schemel <info@artsoft.org>
Sun, 28 Oct 2018 15:42:58 +0000 (16:42 +0100)
src/game.c

index 2eb944d2580343058ec85b5b42d25c96a2c72a6a..479fa0aefda2d2279e9e5e08790a0f1eba85d36a 100644 (file)
@@ -13961,7 +13961,7 @@ static int DigField(struct PlayerInfo *player,
       {
        local_player->players_still_needed = 0;
 
-       PlayerWins(player);
+       PlayerWins(local_player);
 
        PlayLevelSound(x, y, SND_GAME_SOKOBAN_SOLVING);
       }