Fix day_night_ratio_do_override not being initialised server-side 6569/head
authorrubenwardy <rw@rubenwardy.com>
Sun, 29 Oct 2017 18:31:50 +0000 (18:31 +0000)
committerrubenwardy <rw@rubenwardy.com>
Sun, 29 Oct 2017 18:31:53 +0000 (18:31 +0000)
Causes get_day_night_ratio() to return unpredictable results.

src/remoteplayer.h

index 59870f14bfb14cd940d98b6ae6b8071fb067e338..6ecdb2798d932b21b31ff62219353b82658ebada 100644 (file)
@@ -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 = "";