From 5cdaf073be015a99e87dde4540405a69ff56eb47 Mon Sep 17 00:00:00 2001 From: MaxwellScroggs <66567983+MaxwellScroggs@users.noreply.github.com> Date: Sat, 4 Jul 2020 17:49:17 -0400 Subject: cWindow: Convert XYZ to Vector3 (#4764) --- src/UI/EnchantingWindow.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/UI/EnchantingWindow.cpp') diff --git a/src/UI/EnchantingWindow.cpp b/src/UI/EnchantingWindow.cpp index 3e0f2cd4c..a3abf3a02 100644 --- a/src/UI/EnchantingWindow.cpp +++ b/src/UI/EnchantingWindow.cpp @@ -11,14 +11,12 @@ -cEnchantingWindow::cEnchantingWindow(int a_BlockX, int a_BlockY, int a_BlockZ) : +cEnchantingWindow::cEnchantingWindow(Vector3i a_BlockPos) : cWindow(wtEnchantment, "Enchant"), m_SlotArea(), - m_BlockX(a_BlockX), - m_BlockY(a_BlockY), - m_BlockZ(a_BlockZ) + m_BlockPos(a_BlockPos) { - m_SlotArea = new cSlotAreaEnchanting(*this, m_BlockX, m_BlockY, m_BlockZ); + m_SlotArea = new cSlotAreaEnchanting(*this, m_BlockPos); m_SlotAreas.push_back(m_SlotArea); m_SlotAreas.push_back(new cSlotAreaInventory(*this)); m_SlotAreas.push_back(new cSlotAreaHotBar(*this)); -- cgit v1.2.3