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: 5.0.0~750 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cd1140f69cf31c6c3885dd81c64e505ac1559487;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 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 = "";