From 91af32bac65b20a446f2e49f023d3d526729e8ea Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 4 Dec 2009 15:18:20 -0700 Subject: Don't process redudant visibility calls in Window --- src/gui/buy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/buy.cpp') diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp index b4f8ca5e..a2398472 100644 --- a/src/gui/buy.cpp +++ b/src/gui/buy.cpp @@ -268,7 +268,7 @@ void BuyDialog::logic() { Window::logic(); - if (!current_npc && isVisible()) setVisible(false); + if (!current_npc) setVisible(false); } void BuyDialog::setVisible(bool visible) -- cgit v1.2.3-60-g2f50