--- deliantra/server/include/cfperl.h 2007/05/28 21:15:56 1.74 +++ deliantra/server/include/cfperl.h 2007/06/04 12:19:08 1.76 @@ -176,7 +176,7 @@ MTH int refcnt_cnt () const; // check wether the object has died and destroy - MTH void refcnt_chk () { if (refcnt <= 0) do_check (); } + MTH void refcnt_chk () { if (expect_false (refcnt <= 0)) do_check (); } // destroy the object unless it was already destroyed // this politely asks everybody interested the reduce @@ -350,10 +350,7 @@ template void put (keyword k, const T *v) { - if (v) - put (k, v->name); - else - put (k, (const char *)0); + put (k, v ? &v->name : (const char *)0); } template