From 416c4535c7e302191903c2a5c174de4f41a62e1c 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 ee0d625b6..cbb9386ce 100644 --- a/src/remoteplayer.h +++ b/src/remoteplayer.h @@ -156,7 +156,7 @@ private: float m_chat_message_allowance; u16 m_message_rate_overhead; - 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;