MCStack *MCDispatch::findstackid(uint4 fid) { if (fid == 0) return NULL; MCStack *tstk = stacks; do { MCStack *foundstk; if ((foundstk = (MCStack *)tstk->findsubstackid(fid)) != NULL) return foundstk; tstk = (MCStack *)tstk->next(); } while (tstk != stacks); return NULL; }