summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.cpp
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-19 15:10:50 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-19 15:10:50 +0200
commita6de7bf1cd80847abed22e3b962a5b8650b2911c (patch)
tree9d117e42fb0b7aef9271688c6735ae65b7578c20 /src/UI/Window.cpp
parentMerge branch 'master' into Enchanting (diff)
downloadcuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.gz
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.bz2
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.lz
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.xz
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.tar.zst
cuberite-a6de7bf1cd80847abed22e3b962a5b8650b2911c.zip
Diffstat (limited to '')
-rw-r--r--src/UI/Window.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp
index fffe0e3fd..0a78578fc 100644
--- a/src/UI/Window.cpp
+++ b/src/UI/Window.cpp
@@ -826,11 +826,7 @@ void cEnchantingWindow::SetProperty(int a_Property, int a_Value)
{
m_PropertyValue[a_Property] = a_Value;
- cCSLock Lock(m_CS);
- for (cPlayerList::iterator itr = m_OpenedBy.begin(), end = m_OpenedBy.end(); itr != end; ++itr)
- {
- (*itr)->GetClientHandle()->SendWindowProperty(*this, a_Property, a_Value);
- } // for itr - m_OpenedBy[]
+ super::SetProperty(a_Property, a_Value);
}
@@ -841,7 +837,7 @@ void cEnchantingWindow::SetProperty(int a_Property, int a_Value, cPlayer & a_Pla
{
m_PropertyValue[a_Property] = a_Value;
- a_Player.GetClientHandle()->SendWindowProperty(*this, a_Property, a_Value);
+ super::SetProperty(a_Property, a_Value, a_Player);
}