diff options
Diffstat (limited to 'common/coroutines.h')
-rw-r--r-- | common/coroutines.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/coroutines.h b/common/coroutines.h index 834c67f6e4..30b9bb6a99 100644 --- a/common/coroutines.h +++ b/common/coroutines.h @@ -128,7 +128,7 @@ public: */ #define CORO_BEGIN_CONTEXT \ struct CoroContextTag : Common::CoroBaseContext { \ - CoroContextTag() : CoroBaseContext(SCUMMVM_CURRENT_FUNCTION) {} \ + CoroContextTag() : CoroBaseContext(SCUMMVM_CURRENT_FUNCTION) { DUMMY = 0; } \ int DUMMY /** @@ -146,6 +146,7 @@ public: #define CORO_BEGIN_CODE(x) \ if (&coroParam == &Common::nullContext) assert(!Common::nullContext); \ if (!x) { coroParam = x = new CoroContextTag(); } \ + x->DUMMY = 0; \ Common::CoroContextHolder tmpHolder(coroParam); \ switch (coroParam->_line) { case 0:; |