From f62711f97cd8b337ca4823bb6d1834f324762fc7 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Mon, 9 Jan 2017 15:56:16 +0100 Subject: LuaState: Fixed race condition in ref tracking. (#3529) --- src/Bindings/LuaWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Bindings/LuaWindow.cpp') diff --git a/src/Bindings/LuaWindow.cpp b/src/Bindings/LuaWindow.cpp index 6fffa7aac..83463520c 100644 --- a/src/Bindings/LuaWindow.cpp +++ b/src/Bindings/LuaWindow.cpp @@ -116,7 +116,7 @@ bool cLuaWindow::ClosedByPlayer(cPlayer & a_Player, bool a_CanRefuse) bool res; if ( m_OnClosing->Call(this, &a_Player, a_CanRefuse, cLuaState::Return, res) && // The callback succeeded - res // The callback says not to close the window + res // The callback says not to close the window ) { // The callback disagrees (the higher levels check the CanRefuse flag compliance) -- cgit v1.2.3