From 283b9d706c8a1fffb7d85147ddc46d4d8651ba20 Mon Sep 17 00:00:00 2001 From: 12xx12 <44411062+12xx12@users.noreply.github.com> Date: Fri, 13 Nov 2020 22:50:46 +0100 Subject: Some const and inheritance correctness (#5014) * Some const and inheritance correctness * Devirtualise SendBlockTo(Vector3i) Co-authored-by: 12xx12 <12xx12100@gmail.com> Co-authored-by: Tiger Wang --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index 561adc4d0..bd1a52a7d 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -486,7 +486,7 @@ void cWorld::CastThunderbolt(Vector3i a_Block) -int cWorld::GetDefaultWeatherInterval(eWeather a_Weather) +int cWorld::GetDefaultWeatherInterval(eWeather a_Weather) const { auto & Random = GetRandomProvider(); switch (a_Weather) -- cgit v1.2.3