Fix day_night_ratio_do_override not being initialised server-side
authorrubenwardy <rw@rubenwardy.com>
Sun, 29 Oct 2017 18:31:50 +0000 (18:31 +0000)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:32:00 +0000 (17:32 +0200)
Causes get_day_night_ratio() to return unpredictable results.

src/remoteplayer.h

index ee0d625b6b32fbf8e1513251bf4249409d51284d..cbb9386cecc7c1a09c1b165a7569ffe0e4038378 100644 (file)
@@ -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;