mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Fix potentially crashy condition
This commit is contained in:
@@ -720,7 +720,7 @@ void eu07_application::on_char(unsigned int c) {
|
||||
}
|
||||
|
||||
void eu07_application::on_focus_change(bool focus) {
|
||||
if( Global.bInactivePause && !m_network->client) {// jeśli ma być pauzowanie okna w tle
|
||||
if( Global.bInactivePause && m_network.has_value() && !m_network->client) {// jeśli ma być pauzowanie okna w tle
|
||||
command_relay relay;
|
||||
relay.post(user_command::focuspauseset, focus ? 1.0 : 0.0, 0.0, GLFW_PRESS, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user