16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

do not access uninitialized optional (fixes crash on msvc debug)

This commit is contained in:
milek7
2022-02-02 20:17:25 +01:00
parent eb5908bf08
commit e80f76758c

View File

@@ -1392,7 +1392,7 @@ global_settings::export_as_text( std::ostream &Output ) const {
<< "network.server "
<< server.first << " " << server.second << "\n";
}
if( false == network_client->first.empty() ) {
if( network_client ) {
Output
<< "network.client "
<< network_client->first << " " << network_client->second << "\n";