fixed a bug in calling ckLocal for a local chare.
[charm.git] / src / ck-core / ck.C
index b813684fe5b2b12542e78683860916aab168c119..63a0ac2b74d51530c18fcac93987b4c4887a4d39 100644 (file)
@@ -498,7 +498,7 @@ void *CkLocalChare(const CkChareID *pCid)
 #else
                VidBlock *v=CkpvAccess(vidblocks)[(CmiIntPtr)pCid->objPtr];
 #endif
-               return v->getLocalChare();
+               return v->getLocalChareObj();
        }
        else
        { //An ordinary chare ID