From: rubenwardy Date: Sun, 29 Oct 2017 18:31:50 +0000 (+0000) Subject: Fix day_night_ratio_do_override not being initialised server-side X-Git-Tag: 0.4.17~64 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=416c4535c7e302191903c2a5c174de4f41a62e1c;p=oweals%2Fminetest.git Fix day_night_ratio_do_override not being initialised server-side Causes get_day_night_ratio() to return unpredictable results. --- 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;