summaryrefslogtreecommitdiff
path: root/src/remoteplayer.h
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2017-10-29 18:31:50 +0000
committerrubenwardy <rw@rubenwardy.com>2017-10-29 18:31:53 +0000
commitcd1140f69cf31c6c3885dd81c64e505ac1559487 (patch)
tree29f9766e5d32033cc09f1443e4e4834ed3e74543 /src/remoteplayer.h
parentc252ed506eb8324fbdea4b632116c2c7d06a8c9c (diff)
downloadminetest-cd1140f69cf31c6c3885dd81c64e505ac1559487.tar.gz
minetest-cd1140f69cf31c6c3885dd81c64e505ac1559487.tar.bz2
minetest-cd1140f69cf31c6c3885dd81c64e505ac1559487.zip
Fix day_night_ratio_do_override not being initialised server-side
Causes get_day_night_ratio() to return unpredictable results.
Diffstat (limited to 'src/remoteplayer.h')
-rw-r--r--src/remoteplayer.h2
1 files changed, 1 insertions, 1 deletions
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 = "";