aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp')
-rw-r--r--Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp b/Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp
index cc5d996f..48a130c4 100644
--- a/Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp
+++ b/Minecraft.Client/Common/XUI/XUI_Ctrl_BubblesProgress.cpp
@@ -8,9 +8,9 @@ int CXuiCtrlBubblesProgress::GetValue()
void* pvUserData;
this->GetUserData( &pvUserData );
- if( pvUserData != NULL )
+ if( pvUserData != nullptr )
{
- BrewingStandTileEntity *pBrewingStandTileEntity = (BrewingStandTileEntity *)pvUserData;
+ BrewingStandTileEntity *pBrewingStandTileEntity = static_cast<BrewingStandTileEntity *>(pvUserData);
int value = 0;
int bubbleStep = (pBrewingStandTileEntity->getBrewTime() / 2) % 7;