Skip to content

Commit

Permalink
fix: pause the player before loading another save file
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenapte committed Jan 8, 2024
1 parent cb53e7c commit caf2a80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BallanceMMOServer/record_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class record_replayer: public role {

#pragma region FileIO
void set_record_file(const std::string& filename) {
if (playing()) pause();
if (record_stream_.is_open()) {
record_stream_.close();
record_stream_.clear();
Expand Down

0 comments on commit caf2a80

Please sign in to comment.