From 250b8eb652a57dcbdff4af7b6efb9c2554b45798 Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Fri, 26 Nov 2021 00:51:47 +0100 Subject: Fixed Compiler Warnings --- src/BlockEntities/BeaconEntity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/BlockEntities/BeaconEntity.cpp') diff --git a/src/BlockEntities/BeaconEntity.cpp b/src/BlockEntities/BeaconEntity.cpp index 87d25e57a..bff1b2e18 100644 --- a/src/BlockEntities/BeaconEntity.cpp +++ b/src/BlockEntities/BeaconEntity.cpp @@ -106,7 +106,7 @@ bool cBeaconEntity::SetPrimaryEffect(cEntityEffect::eType a_Effect) // Send window update: if (GetWindow() != nullptr) { - GetWindow()->SetProperty(1, m_PrimaryEffect); + GetWindow()->SetProperty(1, static_cast(m_PrimaryEffect)); } return true; } @@ -128,7 +128,7 @@ bool cBeaconEntity::SetSecondaryEffect(cEntityEffect::eType a_Effect) // Send window update: if (GetWindow() != nullptr) { - GetWindow()->SetProperty(2, m_SecondaryEffect); + GetWindow()->SetProperty(2, static_cast(m_SecondaryEffect)); } return true; } -- cgit v1.2.3