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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user