fix battle record loading
This commit is contained in:
+1
-1
@@ -606,7 +606,7 @@ static void server_command_playrec(shared_ptr<Client> c, const std::u16string& a
|
|||||||
|
|
||||||
string data;
|
string data;
|
||||||
try {
|
try {
|
||||||
string data = load_file(file_path);
|
data = load_file(file_path);
|
||||||
} catch (const cannot_open_file&) {
|
} catch (const cannot_open_file&) {
|
||||||
send_text_message(c, u"$C4The recording does\nnot exist");
|
send_text_message(c, u"$C4The recording does\nnot exist");
|
||||||
return;
|
return;
|
||||||
|
|||||||
+1
-1
@@ -260,7 +260,7 @@ void ServerState::remove_lobby(uint32_t lobby_id) {
|
|||||||
primary_l->log.info("Unlinking watcher lobby %" PRIX32, l->lobby_id);
|
primary_l->log.info("Unlinking watcher lobby %" PRIX32, l->lobby_id);
|
||||||
primary_l->watcher_lobbies.erase(l);
|
primary_l->watcher_lobbies.erase(l);
|
||||||
} else {
|
} else {
|
||||||
l->log.info("Watched lobby is missing");
|
l->log.info("No watched lobby to unlink");
|
||||||
}
|
}
|
||||||
l->watched_lobby.reset();
|
l->watched_lobby.reset();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user