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:
parent
1963c8e636
commit
3094e14015
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user