From 8ff22344af60a8f1d7de4501f04c7f659bd5bb08 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 2 Jun 2013 21:59:25 +0000 Subject: LuaWindow: Fixed memory leaks with unclosed windows A player disconnecting will now force all windows to close, not respecting any plugin's overrides. http://forum.mc-server.org/showthread.php?tid=1146&pid=8350#pid8350 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1543 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/UI/Window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/UI/Window.h') diff --git a/source/UI/Window.h b/source/UI/Window.h index 68774aa59..0ff87dc70 100644 --- a/source/UI/Window.h +++ b/source/UI/Window.h @@ -108,7 +108,7 @@ public: void OpenedByPlayer(cPlayer & a_Player); /// Called when a player closes this window; notifies all slot areas. Returns true if close accepted - virtual bool ClosedByPlayer(cPlayer & a_Player); + virtual bool ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse); void SendWholeWindow(cClientHandle & a_Client); void BroadcastWholeWindow(void); -- cgit v1.2.3