LuaStackAutoReset::LuaStackAutoReset(const LuaStack& stack) : mState(stack.State()) { mSavedIndex = stack.Count(); }