From cd1140f69cf31c6c3885dd81c64e505ac1559487 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sun, 29 Oct 2017 18:31:50 +0000 Subject: [PATCH] Fix day_night_ratio_do_override not being initialised server-side Causes get_day_night_ratio() to return unpredictable results. --- src/remoteplayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remoteplayer.h b/src/remoteplayer.h index 59870f14b..6ecdb2798 100644 --- a/src/remoteplayer.h +++ b/src/remoteplayer.h @@ -159,7 +159,7 @@ private: float m_chat_message_allowance = 5.0f; u16 m_message_rate_overhead = 0; - bool m_day_night_ratio_do_override; + bool m_day_night_ratio_do_override = false; float m_day_night_ratio; std::string hud_hotbar_image = ""; std::string hud_hotbar_selected_image = ""; -- 2.25.1