1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Forgot to swap command execution contexts in guard.

This commit is contained in:
Sandu Liviu Catalin 2016-07-03 19:03:36 +03:00
parent 1963c8e636
commit 3094e14015

View File

@ -27,10 +27,10 @@ SQInteger Listener::Typename(HSQUIRRELVM vm)
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
Guard::Guard(const CtrRef & ctr, Object & invoker) Guard::Guard(const CtrRef & ctr, Object & invoker)
: mController(ctr) : mController(ctr)
, mPrevious(mController->GetCtx()) , mPrevious(mController->m_Context)
, mCurrent(new Context(invoker)) , mCurrent(new Context(invoker))
{ {
/* ... */ mController->m_Context = mCurrent;
} }
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------