fixed bug with Sokoban auto-exit option only working for local player
[rocksndiamonds.git] / 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);
       }