Fix replays for network games.

Fixes #4866.