From ee86c9161de6dea6d4b1cdc98b64760bc3ba40eb Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 27 Jan 2017 16:01:53 +0200 Subject: [PATCH] [Client] Set InterpreterContext's sendPackets to false in constructor --- apps/openmw/mwscript/interpretercontext.cpp | 3 +++ apps/openmw/mwscript/interpretercontext.hpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwscript/interpretercontext.cpp b/apps/openmw/mwscript/interpretercontext.cpp index 9fb7db09a..3ee66c789 100644 --- a/apps/openmw/mwscript/interpretercontext.cpp +++ b/apps/openmw/mwscript/interpretercontext.cpp @@ -150,6 +150,9 @@ namespace MWScript // targeted scripts started from this one. if (targetId.empty() && !reference.isEmpty()) mTargetId = reference.getCellRef().getRefId(); + + // Added by tes3mp + sendPackets = false; } int InterpreterContext::getLocalShort (int index) const diff --git a/apps/openmw/mwscript/interpretercontext.hpp b/apps/openmw/mwscript/interpretercontext.hpp index 50f3648e3..55c4e4efe 100644 --- a/apps/openmw/mwscript/interpretercontext.hpp +++ b/apps/openmw/mwscript/interpretercontext.hpp @@ -56,7 +56,7 @@ namespace MWScript ///< The ownership of \a locals is not transferred. 0-pointer allowed. // Added by tes3mp - bool sendPackets = false; + bool sendPackets; virtual int getLocalShort (int index) const;