fix misctake from previous commit get_server_status() segfaults m_env

* Fix the fix commit 78d1c731e3181ee77af3dbabcec40b10e473702c
  for Fix get_server_status() segfault due to uninitialized m_env
  that refers to https://github.com/minetest/minetest/issues/7857
This commit is contained in:
mckaygerhard 2023-01-05 16:55:43 -04:00
parent 78d1c731e3
commit d9518b1954

View File

@ -3017,7 +3017,7 @@ std::wstring Server::getStatusString()
// Version // Version
os << L"version=" << narrow_to_wide(g_version_string); os << L"version=" << narrow_to_wide(g_version_string);
// Uptime // Uptime
os < <L", uptime=" << m_uptime.get(); os << L", uptime=" << m_uptime.get();
// Max lag estimate // Max lag estimate
os << L", max_lag=" << (m_env ? m_env->getMaxLagEstimate() : 0); os << L", max_lag=" << (m_env ? m_env->getMaxLagEstimate() : 0);
// Information about clients // Information about clients