Skip to content

Commit cd1140f

Browse files
committedOct 29, 2017
Fix day_night_ratio_do_override not being initialised server-side
Causes get_day_night_ratio() to return unpredictable results.
1 parent c252ed5 commit cd1140f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/remoteplayer.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class RemotePlayer : public Player
159159
float m_chat_message_allowance = 5.0f;
160160
u16 m_message_rate_overhead = 0;
161161

162-
bool m_day_night_ratio_do_override;
162+
bool m_day_night_ratio_do_override = false;
163163
float m_day_night_ratio;
164164
std::string hud_hotbar_image = "";
165165
std::string hud_hotbar_selected_image = "";

0 commit comments

Comments
 (0)